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

Function runit_Row_Column_sugar

inst/tinytest/cpp/Matrix.cpp:216–226  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

214
215// [[Rcpp::export]]
216List runit_Row_Column_sugar( NumericMatrix x){
217 NumericVector r0 = x.row(0) ;
218 NumericVector c0 = x.column(0) ;
219 return List::create(
220 r0,
221 c0,
222 x.row(1),
223 x.column(1),
224 x.row(1) + x.column(1)
225 ) ;
226}
227
228// [[Rcpp::export]]
229NumericMatrix runit_NumericMatrix_colsum( NumericMatrix input ){

Callers

nothing calls this directly

Calls 2

rowMethod · 0.80
columnMethod · 0.80

Tested by

no test coverage detected