| 270 | } |
| 271 | |
| 272 | static void RowSetSlice( TMAT & self, py::slice inds, const TMAT &r ) { |
| 273 | size_t start, step, n; |
| 274 | InitSlice( inds, self.Height(), start, step, n ); |
| 275 | for (int i=0; i<n; i++, start+=step) |
| 276 | self.Row(start) = r.Row(i); |
| 277 | } |
| 278 | |
| 279 | static void RowSetSliceScal( TMAT & self, py::slice inds, TSCAL r ) { |
| 280 | size_t start, step, n; |