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

Method ConstMatrixColumn

inst/include/Rcpp/vector/MatrixColumn.h:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

nrowMethod · 0.45
beginMethod · 0.45
ncolMethod · 0.45

Tested by

no test coverage detected