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";
Option_t Option_t TPoint TPoint const char x2
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...