MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / operator+

Function operator+

contents/barnsley/code/cpp/barnsley.cpp:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16template <size_t N>
17auto operator+(std::array<double, N> x, std::array<double, N> y) {
18 for (auto i = 0U; i < N; ++i)
19 x[i] += y[i];
20 return x;
21}
22
23template <size_t N>
24auto operator*(double k, std::array<double, N> v) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected