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

Method Outer

inst/include/Rcpp/sugar/matrix/outer.h:54–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 typedef typename Rcpp::traits::storage_type<RESULT_R_TYPE>::type STORAGE ;
53
54 Outer( const LHS_TYPE& lhs_, const RHS_TYPE& rhs_, Function fun_ ) :
55 lhs(lhs_), rhs(rhs_), fun(fun_), nr(lhs_.size()), nc(rhs_.size()) {}
56
57 inline STORAGE operator()( int i, int j ) const {
58 return converter_type::get( fun( lhs[i], rhs[j] ) );

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected