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

Method RowGetSlice

basiclinalg/python_bla.cpp:255–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 }
254
255 static TNEW RowGetSlice( TMAT & self, py::slice inds ) {
256 size_t start, step, n;
257 InitSlice( inds, self.Height(), start, step, n );
258 TNEW res(n, self.Width());
259 for (int i=0; i<n; i++, start+=step)
260 res.Row(i) = self.Row(start);
261 return res;
262 }
263
264 static void RowSetInt( TMAT & self, int ind, const TROW &r ) {
265 self.Row(ind) = r;

Callers

nothing calls this directly

Calls 4

InitSliceFunction · 0.85
HeightMethod · 0.45
WidthMethod · 0.45
RowMethod · 0.45

Tested by

no test coverage detected