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

Method ConstMatrixRow

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

Source from the content-addressed store, hash-verified

290 typedef const_iterator iterator;
291
292 ConstMatrixRow( const MATRIX& object, int i ) :
293 parent(object),
294 start(parent.begin() + i),
295 parent_nrow(parent.nrow()),
296 row(i)
297 {
298 if( i < 0 || i >= parent.nrow() ) {
299 const char* fmt = "Row index is out of bounds: "
300 "[index=%i; row extent=%i].";
301 throw index_out_of_bounds(fmt, i, parent.nrow()) ;
302 }
303 }
304
305 ConstMatrixRow( const ConstMatrixRow& other ) :
306 parent(other.parent),

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
nrowMethod · 0.45

Tested by

no test coverage detected