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

Function InitSlice

ngstd/python_ngstd.hpp:136–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
135
136inline void InitSlice( const py::slice &inds, size_t len, size_t &start, size_t &step, size_t &n ) {
137 size_t stop;
138 if (!inds.compute(len, &start, &stop, &step, &n))
139 throw py::error_already_set();
140}
141
142template<typename T>
143py::array_t<T> MoveToNumpyArray( Array<T> &a )

Callers 12

PyVecAccessFunction · 0.85
SetTupleVecMethod · 0.85
SetTupleScalMethod · 0.85
SetTupleMethod · 0.85
RowGetSliceMethod · 0.85
RowSetSliceMethod · 0.85
RowSetSliceScalMethod · 0.85
ColGetSliceMethod · 0.85
ColSetSliceMethod · 0.85
ColSetSliceScalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected