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

Method update_index

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

Source from the content-addressed store, hash-verified

178 int nr, nc ;
179
180 inline void update_index( int index_ ){
181 i = internal::get_line( index_, nr );
182 j = internal::get_column( index_, nr, i ) ;
183 }
184
185 inline R_xlen_t index() const {
186 return i + nr * j ;

Callers

nothing calls this directly

Calls 2

get_lineFunction · 0.85
get_columnFunction · 0.85

Tested by

no test coverage detected