| 131 | typedef iter_base< const_iter_traits > const_iterator; |
| 132 | |
| 133 | MatrixRow( MATRIX& object, int i ) : |
| 134 | parent(object), |
| 135 | start(parent.begin() + i), |
| 136 | parent_nrow(parent.nrow()), |
| 137 | row(i) |
| 138 | { |
| 139 | if( i < 0 || i >= parent.nrow() ) { |
| 140 | const char* fmt = "Row index is out of bounds: " |
| 141 | "[index=%i; row extent=%i]."; |
| 142 | throw index_out_of_bounds(fmt, i, parent.nrow()) ; |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | MatrixRow( const MatrixRow& other ) : |
| 147 | parent(other.parent), |