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

Method SubMatrix

inst/include/Rcpp/vector/SubMatrix.h:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 typedef typename MATRIX::Proxy Proxy ;
32
33 SubMatrix( MATRIX& m_, const Range& row_range_, const Range& col_range_ ) :
34 m(m_),
35 iter( static_cast< Vector<RTYPE>& >(m_).begin() + row_range_.get_start() + col_range_.get_start() * m_.nrow() ),
36 m_nr( m.nrow() ),
37 nc( col_range_.size() ),
38 nr( row_range_.size() )
39 {}
40
41 inline R_xlen_t size() const { return ((R_xlen_t)ncol()) * nrow() ; }
42 inline R_xlen_t ncol() const { return nc ; }

Callers

nothing calls this directly

Calls 4

get_startMethod · 0.80
beginMethod · 0.45
nrowMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected