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

Method RowSetSlice

basiclinalg/python_bla.cpp:272–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270 }
271
272 static void RowSetSlice( TMAT & self, py::slice inds, const TMAT &r ) {
273 size_t start, step, n;
274 InitSlice( inds, self.Height(), start, step, n );
275 for (int i=0; i<n; i++, start+=step)
276 self.Row(start) = r.Row(i);
277 }
278
279 static void RowSetSliceScal( TMAT & self, py::slice inds, TSCAL r ) {
280 size_t start, step, n;

Callers

nothing calls this directly

Calls 3

InitSliceFunction · 0.85
HeightMethod · 0.45
RowMethod · 0.45

Tested by

no test coverage detected