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

Method UpperTri

inst/include/Rcpp/sugar/matrix/upper_tri.h:34–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 typedef Rcpp::MatrixBase<RTYPE, NA, T> MatBase;
33
34 UpperTri(const T& lhs, bool diag)
35 : nr(lhs.nrow()),
36 nc(lhs.ncol()),
37 getter(diag ? (&UpperTri::get_diag_true) : (&UpperTri::get_diag_false))
38 {}
39
40 inline int operator()(int i, int j) const { return get(i, j); }
41

Callers

nothing calls this directly

Calls 2

nrowMethod · 0.45
ncolMethod · 0.45

Tested by

no test coverage detected