MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / copy_vector

Function copy_vector

SRC/runtime/python/OpenSeesPyRT.cpp:178–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176
177
178static py::array_t<double>
179copy_vector(Vector vector)
180{
181 py::array_t<double> array(vector.Size());
182 double *ptr = static_cast<double*>(array.request().ptr);
183 for (int i=0; i<vector.Size(); i++)
184 ptr[i] = vector(i);
185 return array;
186}
187
188static Vector *
189new_vector(py::array_t<double> array)

Callers 15

make_scaling_solverMethod · 0.85
damped_jacobiMethod · 0.85
spai0Method · 0.85
ilu_solveMethod · 0.85
initMethod · 0.85
initMethod · 0.85
spai0Method · 0.85
copy_vectorMethod · 0.85
copy_vectorMethod · 0.85
copy_vectorMethod · 0.85
copy_vectorMethod · 0.85
copy_vectorMethod · 0.85

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected