| 89 | typedef std::random_access_iterator_tag iterator_category ; |
| 90 | |
| 91 | iterator( const MatrixBase& object_, R_xlen_t index_ ) : |
| 92 | object(object_), i(0), j(0), nr(object_.nrow()), nc(object_.ncol()) { |
| 93 | |
| 94 | update_index( index_) ; |
| 95 | } |
| 96 | |
| 97 | iterator( const iterator& other) : |
| 98 | object(other.object), i(other.i), j(other.j), nr(other.nr), nc(other.nc){} |