1#ifndef TMVA_RTENSOR_UTILS
2#define TMVA_RTENSOR_UTILS
12namespace Experimental {
19template <
typename T,
typename U>
25 columns = dataframe.GetColumnNames();
39 const auto data =
x.GetData();
40 if (
layout == MemoryLayout::RowMajor) {
41 for (std::size_t i = 0; i < numEntries; i++) {
47 }
else if (
layout == MemoryLayout::ColumnMajor) {
48 for (std::size_t i = 0; i <
numCols; i++) {
50 std::memcpy(
data + numEntries * i, &
resultPtrs[i]->at(0), numEntries *
sizeof(T));
53 throw std::runtime_error(
"Memory layout is not known.");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Smart pointer for the return type of actions.
RTensor< T > AsTensor(U &dataframe, std::vector< std::string > columns={}, MemoryLayout layout=MemoryLayout::RowMajor)
Convert the content of an RDataFrame to an RTensor.
MemoryLayout
Memory layout type (copy from RTensor.hxx)
create variable transformations