Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest > Class Template Reference

template<typename First, typename... Rest>
class TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >

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>

Constructor & Destructor Documentation

◆ RChunkLoaderFunctor()

template<typename First , typename... Rest>
TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >::RChunkLoaderFunctor ( TMVA::Experimental::RTensor< float > &  chunkTensor,
const std::vector< std::size_t > &  maxVecSizes = std::vector<std::size_t>(),
const float  vecPadding = 0.0 
)
inline

Definition at line 96 of file RChunkLoader.hxx.

Member Function Documentation

◆ AssignToTensor() [1/4]

template<typename First , typename... Rest>
template<typename VecType >
void TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >::AssignToTensor ( const ROOT::RVec< VecType > &  first)
inlineprivate

Load the final given value into fChunkTensor.

Template Parameters
VecType
Parameters
first

Definition at line 43 of file RChunkLoader.hxx.

◆ AssignToTensor() [2/4]

template<typename First , typename... Rest>
template<typename VecType , typename... Rest_T>
void TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >::AssignToTensor ( const ROOT::RVec< VecType > &  first,
Rest_T...  rest 
)
inlineprivate

Recursively loop through the given values, and load them onto the fChunkTensor.

Template Parameters
VecType
...Rest_T
Parameters
first
...rest

Definition at line 67 of file RChunkLoader.hxx.

◆ AssignToTensor() [3/4]

template<typename First , typename... Rest>
template<typename First_T >
void TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >::AssignToTensor ( First_T  first)
inlineprivate

Load the final given value into fChunkTensor.

Template Parameters
First_T
Parameters
first

Definition at line 34 of file RChunkLoader.hxx.

◆ AssignToTensor() [4/4]

template<typename First , typename... Rest>
template<typename First_T , typename... Rest_T>
void TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >::AssignToTensor ( First_T  first,
Rest_T...  rest 
)
inlineprivate

Recursively loop through the given values, and load them onto the fChunkTensor.

Template Parameters
First_T
...Rest_T
Parameters
first
...rest

Definition at line 54 of file RChunkLoader.hxx.

◆ AssignVector()

template<typename First , typename... Rest>
template<typename VecType >
void TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >::AssignVector ( const ROOT::RVec< VecType > &  vec)
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.

Template Parameters
VecType
Parameters
vec

Definition at line 81 of file RChunkLoader.hxx.

◆ operator()()

template<typename First , typename... Rest>
void TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >::operator() ( First  first,
Rest...  rest 
)
inline

Loop through all columns of an event and put their values into an RTensor.

Parameters
first
...rest

Definition at line 106 of file RChunkLoader.hxx.

Member Data Documentation

◆ fChunkTensor

template<typename First , typename... Rest>
TMVA::Experimental::RTensor<float>& TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >::fChunkTensor
private

Definition at line 28 of file RChunkLoader.hxx.

◆ fMaxVecSizes

template<typename First , typename... Rest>
std::vector<std::size_t> TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >::fMaxVecSizes
private

Definition at line 24 of file RChunkLoader.hxx.

◆ fOffset

template<typename First , typename... Rest>
std::size_t TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >::fOffset = 0
private

Definition at line 22 of file RChunkLoader.hxx.

◆ fVecPadding

template<typename First , typename... Rest>
float TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >::fVecPadding
private

Definition at line 26 of file RChunkLoader.hxx.

◆ fVecSizeIdx

template<typename First , typename... Rest>
std::size_t TMVA::Experimental::Internal::RChunkLoaderFunctor< First, Rest >::fVecSizeIdx = 0
private

Definition at line 23 of file RChunkLoader.hxx.

  • tmva/tmva/inc/TMVA/RChunkLoader.hxx