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

Method ColSetSliceScal

basiclinalg/python_bla.cpp:314–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312 }
313
314 static void ColSetSliceScal( TMAT & self, py::slice inds, TSCAL r ) {
315 size_t start, step, n;
316 InitSlice( inds, self.Width(), start, step, n );
317 for (int i=0; i<n; i++, start+=step)
318 self.Col(start) = r;
319 }
320 };
321 c.def("__getitem__", &PyMatAccessHelper::GetTuple);
322 c.def("__getitem__", &PyMatAccessHelper::RowGetInt);

Callers

nothing calls this directly

Calls 3

InitSliceFunction · 0.85
WidthMethod · 0.45
ColMethod · 0.45

Tested by

no test coverage detected