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

Method MatrixRow

inst/include/Rcpp/vector/MatrixRow.h:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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),

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
nrowMethod · 0.45

Tested by

no test coverage detected