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

template<typename... ColTypes>
class TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >

Definition at line 41 of file RChunkLoader.hxx.

Public Member Functions

 RChunkLoaderFunctor (TMVA::Experimental::RTensor< float > &chunkTensor, std::size_t numColumns, const std::vector< std::size_t > &maxVecSizes, float vecPadding, int i)
 
void operator() (const ColTypes &...cols)
 

Private Member Functions

template<typename T , std::enable_if_t<!ROOT::Internal::RDF::IsDataContainer< T >::value, int > = 0>
void AssignToTensor (const T &val, int i, int numColumns)
 Copy the content of a column into RTensor when the column consits of single values.
 
template<typename T , std::enable_if_t< ROOT::Internal::RDF::IsDataContainer< T >::value, int > = 0>
void AssignToTensor (const T &vec, int i, int numColumns)
 Copy the content of a column into RTensor when the column consits of vectors.
 

Private Attributes

TMVA::Experimental::RTensor< float > & fChunkTensor
 
int fI
 
std::vector< std::size_t > fMaxVecSizes {}
 
std::size_t fNumChunkCols
 
int fNumColumns
 
std::size_t fOffset {}
 
float fVecPadding {}
 
std::size_t fVecSizeIdx {}
 

#include <TMVA/BatchGenerator/RChunkLoader.hxx>

Constructor & Destructor Documentation

◆ RChunkLoaderFunctor()

template<typename... ColTypes>
TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >::RChunkLoaderFunctor ( TMVA::Experimental::RTensor< float > & chunkTensor,
std::size_t numColumns,
const std::vector< std::size_t > & maxVecSizes,
float vecPadding,
int i )
inline

Definition at line 84 of file RChunkLoader.hxx.

Member Function Documentation

◆ AssignToTensor() [1/2]

template<typename... ColTypes>
template<typename T , std::enable_if_t<!ROOT::Internal::RDF::IsDataContainer< T >::value, int > = 0>
void TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >::AssignToTensor ( const T & val,
int i,
int numColumns )
inlineprivate

Copy the content of a column into RTensor when the column consits of single values.

Definition at line 76 of file RChunkLoader.hxx.

◆ AssignToTensor() [2/2]

template<typename... ColTypes>
template<typename T , std::enable_if_t< ROOT::Internal::RDF::IsDataContainer< T >::value, int > = 0>
void TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >::AssignToTensor ( const T & vec,
int i,
int numColumns )
inlineprivate

Copy the content of a column into RTensor when the column consits of vectors.

Definition at line 57 of file RChunkLoader.hxx.

◆ operator()()

template<typename... ColTypes>
void TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >::operator() ( const ColTypes &... cols)
inline

Definition at line 90 of file RChunkLoader.hxx.

Member Data Documentation

◆ fChunkTensor

template<typename... ColTypes>
TMVA::Experimental::RTensor<float>& TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >::fChunkTensor
private

Definition at line 47 of file RChunkLoader.hxx.

◆ fI

template<typename... ColTypes>
int TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >::fI
private

Definition at line 51 of file RChunkLoader.hxx.

◆ fMaxVecSizes

template<typename... ColTypes>
std::vector<std::size_t> TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >::fMaxVecSizes {}
private

Definition at line 46 of file RChunkLoader.hxx.

◆ fNumChunkCols

template<typename... ColTypes>
std::size_t TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >::fNumChunkCols
private

Definition at line 49 of file RChunkLoader.hxx.

◆ fNumColumns

template<typename... ColTypes>
int TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >::fNumColumns
private

Definition at line 52 of file RChunkLoader.hxx.

◆ fOffset

template<typename... ColTypes>
std::size_t TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >::fOffset {}
private

Definition at line 43 of file RChunkLoader.hxx.

◆ fVecPadding

template<typename... ColTypes>
float TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >::fVecPadding {}
private

Definition at line 45 of file RChunkLoader.hxx.

◆ fVecSizeIdx

template<typename... ColTypes>
std::size_t TMVA::Experimental::Internal::RChunkLoaderFunctor< ColTypes >::fVecSizeIdx {}
private

Definition at line 44 of file RChunkLoader.hxx.

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