MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / ArrayFromVector

Function ArrayFromVector

linalg/python_linalg.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15template <typename T>
16Array<T> ArrayFromVector (const std::vector<T> & vec)
17{
18 Array<T> a (vec.size());
19 for (int i = 0; i < a.Size(); i++)
20 a[i] = vec[i];
21 return a;
22}
23
24
25class PyLinearOperator : public BaseMatrix

Callers 1

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected