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

Method ColSetSlice

basiclinalg/python_bla.cpp:307–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305 }
306
307 static void ColSetSlice( TMAT & self, py::slice inds, const TMAT &r ) {
308 size_t start, step, n;
309 InitSlice( inds, self.Width(), start, step, n );
310 for (int i=0; i<n; i++, start+=step)
311 self.Col(start) = r.Col(i);
312 }
313
314 static void ColSetSliceScal( TMAT & self, py::slice inds, TSCAL r ) {
315 size_t start, step, n;

Callers

nothing calls this directly

Calls 3

InitSliceFunction · 0.85
WidthMethod · 0.45
ColMethod · 0.45

Tested by

no test coverage detected