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

Method ColGetSlice

basiclinalg/python_bla.cpp:290–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288 }
289
290 static TNEW ColGetSlice( const TMAT & self, py::slice inds ) {
291 size_t start, step, n;
292 InitSlice( inds, self.Width(), start, step, n );
293 TNEW res(self.Height(),n);
294 for (int i=0; i<n; i++, start+=step)
295 res.Col(i) = self.Col(start);
296 return res;
297 }
298
299 static void ColSetInt( TMAT & self, int ind, const TCOL &r ) {
300 self.Col(ind) = r;

Callers

nothing calls this directly

Calls 4

InitSliceFunction · 0.85
WidthMethod · 0.45
HeightMethod · 0.45
ColMethod · 0.45

Tested by

no test coverage detected