| 277 | } |
| 278 | |
| 279 | static void RowSetSliceScal( TMAT & self, py::slice inds, TSCAL r ) { |
| 280 | size_t start, step, n; |
| 281 | InitSlice( inds, self.Height(), start, step, n ); |
| 282 | for (int i=0; i<n; i++, start+=step) |
| 283 | self.Row(start) = r; |
| 284 | } |
| 285 | |
| 286 | static Vector<TSCAL> ColGetInt( TMAT & self, int ind ) { |
| 287 | return Vector<TSCAL>(self.Col(ind)); |