15void tmva002_RDataFrameAsTensor()
19 auto df2 = df.Define(
"x",
"1.f*rdfentry_").Define(
"y",
"-1.f*rdfentry_");
24 std::cout <<
"RTensor from an RDataFrame:\n" <<
x <<
"\n\n";
30 std::cout <<
"RTensor from a single column of the RDataFrame:\n" << x2 <<
"\n\n";
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
RTensor< T > AsTensor(U &dataframe, std::vector< std::string > columns={}, MemoryLayout layout=MemoryLayout::RowMajor)
Convert the content of an RDataFrame to an RTensor.