Definition at line 19 of file RChunkLoader.hxx.
Public Member Functions | |
RChunkLoaderFunctor (TMVA::Experimental::RTensor< float > &chunkTensor, const std::vector< std::size_t > &maxVecSizes=std::vector< std::size_t >(), const float vecPadding=0.0) | |
void | operator() (First first, Rest... rest) |
Loop through all columns of an event and put their values into an RTensor. | |
Private Member Functions | |
template<typename VecType > | |
void | AssignToTensor (const ROOT::RVec< VecType > &first) |
Load the final given value into fChunkTensor. | |
template<typename VecType , typename... Rest_T> | |
void | AssignToTensor (const ROOT::RVec< VecType > &first, Rest_T... rest) |
Recursively loop through the given values, and load them onto the fChunkTensor. | |
template<typename First_T > | |
void | AssignToTensor (First_T first) |
Load the final given value into fChunkTensor. | |
template<typename First_T , typename... Rest_T> | |
void | AssignToTensor (First_T first, Rest_T... rest) |
Recursively loop through the given values, and load them onto the fChunkTensor. | |
template<typename VecType > | |
void | AssignVector (const ROOT::RVec< VecType > &vec) |
Loop through the values of a given vector and load them into the RTensor Note: the given vec_size does not have to be the same size as the given vector If the size is bigger than the given vector, zeros are used as padding. | |
Private Attributes | |
TMVA::Experimental::RTensor< float > & | fChunkTensor |
std::vector< std::size_t > | fMaxVecSizes |
std::size_t | fOffset = 0 |
float | fVecPadding |
std::size_t | fVecSizeIdx = 0 |
#include <TMVA/RChunkLoader.hxx>
|
inline |
Definition at line 96 of file RChunkLoader.hxx.
|
inlineprivate |
Load the final given value into fChunkTensor.
VecType |
first |
Definition at line 43 of file RChunkLoader.hxx.
|
inlineprivate |
Recursively loop through the given values, and load them onto the fChunkTensor.
VecType | |
...Rest_T |
first | |
...rest |
Definition at line 67 of file RChunkLoader.hxx.
|
inlineprivate |
Load the final given value into fChunkTensor.
First_T |
first |
Definition at line 34 of file RChunkLoader.hxx.
|
inlineprivate |
Recursively loop through the given values, and load them onto the fChunkTensor.
First_T | |
...Rest_T |
first | |
...rest |
Definition at line 54 of file RChunkLoader.hxx.
|
inlineprivate |
Loop through the values of a given vector and load them into the RTensor Note: the given vec_size does not have to be the same size as the given vector If the size is bigger than the given vector, zeros are used as padding.
If the size is smaller, the remaining values are ignored.
VecType |
vec |
Definition at line 81 of file RChunkLoader.hxx.
|
inline |
Loop through all columns of an event and put their values into an RTensor.
first | |
...rest |
Definition at line 106 of file RChunkLoader.hxx.
|
private |
Definition at line 28 of file RChunkLoader.hxx.
|
private |
Definition at line 24 of file RChunkLoader.hxx.
|
private |
Definition at line 22 of file RChunkLoader.hxx.
|
private |
Definition at line 26 of file RChunkLoader.hxx.
|
private |
Definition at line 23 of file RChunkLoader.hxx.