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

Method SugarBlock_2

inst/include/Rcpp/sugar/block/SugarBlock_2.h:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30public:
31 typedef RESULT_TYPE (*FunPtr)(U1,U2) ;
32 SugarBlock_2( FunPtr ptr_, const T1 & x_, const T2& y_ ) :
33 ptr(ptr_), x(x_), y(y_){
34 // TODO: check that x and y have same size
35 }
36
37 inline RESULT_TYPE operator[]( R_xlen_t i) const {
38 return ptr( x[i], y[i] ) ;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected