| 253 | } |
| 254 | |
| 255 | static TNEW RowGetSlice( TMAT & self, py::slice inds ) { |
| 256 | size_t start, step, n; |
| 257 | InitSlice( inds, self.Height(), start, step, n ); |
| 258 | TNEW res(n, self.Width()); |
| 259 | for (int i=0; i<n; i++, start+=step) |
| 260 | res.Row(i) = self.Row(start); |
| 261 | return res; |
| 262 | } |
| 263 | |
| 264 | static void RowSetInt( TMAT & self, int ind, const TROW &r ) { |
| 265 | self.Row(ind) = r; |