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

Method ncol

inst/include/Rcpp/vector/Matrix.h:94–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 explicit Matrix( const no_init_matrix& obj) : VECTOR(Rf_allocMatrix(RTYPE, obj.nrow(), obj.ncol())), nrows(obj.nrow()) {}
93
94 inline int ncol() const {
95 return VECTOR::dims()[1];
96 }
97 inline int nrow() const {
98 return nrows ;
99 }

Callers 9

sizeMethod · 0.45
sizeMethod · 0.45
MatrixColumnMethod · 0.45
ConstMatrixColumnMethod · 0.45
MatrixMethod · 0.45
Matrix.hFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected