| 134 | |
| 135 | |
| 136 | inline 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 | |
| 142 | template<typename T> |
| 143 | py::array_t<T> MoveToNumpyArray( Array<T> &a ) |
no outgoing calls
no test coverage detected