15void tmva002_RDataFrameAsTensor()
19 auto df2 = df.Define(
"x",
"1.f*rdfentry_").Define(
"y",
"-1.f*rdfentry_");
22 auto x = AsTensor<float>(df2);
24 std::cout <<
"RTensor from an RDataFrame:\n" <<
x <<
"\n\n";
28 auto x2 = AsTensor<float>(df2, {
"x"}, MemoryLayout::ColumnMajor);
30 std::cout <<
"RTensor from a single column of the RDataFrame:\n" <<
x2 <<
"\n\n";
static const double x2[5]
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTree,...