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

Function runit_diag

inst/tinytest/cpp/sugar.cpp:531–537  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

529
530// [[Rcpp::export]]
531List runit_diag( NumericVector xx, NumericMatrix mm ){
532 return List::create(
533 diag( xx ) ,
534 diag( mm ),
535 diag( outer( xx, xx, std::plus<double>() ) )
536 ) ;
537}
538
539// [[Rcpp::export]]
540List runit_gamma( NumericVector xx ){

Callers

nothing calls this directly

Calls 2

diagFunction · 0.85
outerFunction · 0.85

Tested by

no test coverage detected