MCPcopy Create free account
hub / github.com/VcDevel/Vc / MatrixValarray

Method MatrixValarray

examples/matrix/main.cpp:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38public:
39 MatrixValarray()
40 {
41 for (auto &v : data) {
42 v.resize(N);
43 }
44 }
45 std::valarray<T> &operator[](std::size_t i) { return data[i]; }
46 const std::valarray<T> &operator[](std::size_t i) const { return data[i]; }
47};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected