| 288 | } |
| 289 | |
| 290 | static TNEW ColGetSlice( const TMAT & self, py::slice inds ) { |
| 291 | size_t start, step, n; |
| 292 | InitSlice( inds, self.Width(), start, step, n ); |
| 293 | TNEW res(self.Height(),n); |
| 294 | for (int i=0; i<n; i++, start+=step) |
| 295 | res.Col(i) = self.Col(start); |
| 296 | return res; |
| 297 | } |
| 298 | |
| 299 | static void ColSetInt( TMAT & self, int ind, const TCOL &r ) { |
| 300 | self.Col(ind) = r; |