MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / iterator

Method iterator

inst/include/Rcpp/vector/MatrixBase.h:91–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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){}

Callers

nothing calls this directly

Calls 2

nrowMethod · 0.45
ncolMethod · 0.45

Tested by

no test coverage detected