| 290 | typedef const_iterator iterator; |
| 291 | |
| 292 | ConstMatrixRow( const MATRIX& object, int i ) : |
| 293 | parent(object), |
| 294 | start(parent.begin() + i), |
| 295 | parent_nrow(parent.nrow()), |
| 296 | row(i) |
| 297 | { |
| 298 | if( i < 0 || i >= parent.nrow() ) { |
| 299 | const char* fmt = "Row index is out of bounds: " |
| 300 | "[index=%i; row extent=%i]."; |
| 301 | throw index_out_of_bounds(fmt, i, parent.nrow()) ; |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | ConstMatrixRow( const ConstMatrixRow& other ) : |
| 306 | parent(other.parent), |