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

Method RowSetSliceScal

basiclinalg/python_bla.cpp:279–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 }
278
279 static void RowSetSliceScal( TMAT & self, py::slice inds, TSCAL r ) {
280 size_t start, step, n;
281 InitSlice( inds, self.Height(), start, step, n );
282 for (int i=0; i<n; i++, start+=step)
283 self.Row(start) = r;
284 }
285
286 static Vector<TSCAL> ColGetInt( TMAT & self, int ind ) {
287 return Vector<TSCAL>(self.Col(ind));

Callers

nothing calls this directly

Calls 3

InitSliceFunction · 0.85
HeightMethod · 0.45
RowMethod · 0.45

Tested by

no test coverage detected