| 128 | typedef typename MATRIX::const_iterator const_iterator ; |
| 129 | |
| 130 | ConstMatrixColumn( const MATRIX& parent, int i ) : |
| 131 | n(parent.nrow()), |
| 132 | const_start(parent.begin() + static_cast<R_xlen_t>(i) * n) |
| 133 | { |
| 134 | if( i < 0 || i >= parent.ncol() ) { |
| 135 | const char* fmt = "Column index is out of bounds: " |
| 136 | "[index=%i; column extent=%i]."; |
| 137 | throw index_out_of_bounds(fmt, i, parent.ncol()) ; |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | ConstMatrixColumn( const ConstMatrixColumn& other ) : |
| 142 | n(other.n), |