38 .method(
"doEval", &MyFunctor::doEval )
39 .method(
"getStatus", &MyFunctor::getStatus)
54 r<<
"MyFunctor <- MyFunctorModule$MyFunctor";
56 r<<
"u <- new(MyFunctor)";
59 r<<
"print(u$getStatus())";
62 r<<
"print(sprintf('value in R = %f',u$doEval( 1 )))";
72 r[
"functor"]<<functor;
74 r<<
"print(functor$getStatus())";
75 r<<
"print(sprintf('value in R = %f',functor$doEval( 1 )))";
76 std::cout<<
"value in ROOT = "<<
TMath::Erf(1)<<std::endl;
ROOTR_MODULE(MyFunctorModule)
Double_t BesselY1(Double_t x)
Returns the Bessel function Y1(x) for positive x.
#define ROOTR_EXPOSED_CLASS
Double_t Erf(Double_t x)
Computation of the error function erf(x).
static TRInterface & Instance()
static method to get an TRInterface instance reference
#define LOAD_ROOTR_MODULE(NAME)