24std::vector<Double_t> sv(3);
25std::array<Int_t,3>
a{ {1,2,3} };
63std::cout<<
"-----------Printing Results---------\n";
65std::cout<<
"--------------------\n";
67std::cout<<
"--------------------\n";
69std::cout<<
"--------------------\n";
71std::cout<<
"--------------------\n";
73std::cout<<
"--------------------\n";
75std::cout<<
"--------------------\n";
77std::cout<<
"--------------------\n";
79std::cout<<
"--------------------\n";
81std::cout<<
"--------------------\n";
83std::cout<<
"--------------------\n";
94r<<
"print(Function(-1))";
96r<<
"print(Function(1))";
98r<<
"print('hello ')"<<std::string(
"print('world ')");
104std::cout<<
x<<std::endl;
107std::cout<<
x<<std::endl;
109r<<
"mat<-matrix(c(1,2,3,4),nrow=2)";
131std::cout<<
" array={"<<
a[0]<<
","<<
a[1]<<
","<<
a[2]<<
"}";
139std::cout<<
"funi="<<
Fun(2)<<std::endl;
142r<<
"print(fund(2.01))";
143std::cout<<
"fund="<<
Fun(2.01)<<std::endl;
Double_t(* Function)(Double_t)
This is a class to pass functions from ROOT to R.
ROOT R was implemented using the R Project library and the modules Rcpp and RInside
static TRInterface & Instance()
static method to get an TRInterface instance reference
void Print(Option_t *name="") const
Print the matrix as a table of elements.