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

template<typename... ColTypes>
class ROOT::Experimental::Internal::ML::RClusterLoaderFunctor< ColTypes >

Functor invoked by RDataFrame::Foreach to fill one row of an RFlat2DMatrix.

Definition at line 60 of file RClusterLoader.hxx.

Public Member Functions

 RClusterLoaderFunctor (RFlat2DMatrix &chunkTensor, std::size_t numColumns, const std::vector< std::size_t > &maxVecSizes, float vecPadding, int i, std::size_t rowOffset=0)
 
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 the current tensor when the column consists of scalar 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 the current tensor when the column consists of vectors.
 

Private Attributes

RFlat2DMatrixfChunkTensor
 
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 <ROOT/ML/RClusterLoader.hxx>

Constructor & Destructor Documentation

◆ RClusterLoaderFunctor()

template<typename... ColTypes>
ROOT::Experimental::Internal::ML::RClusterLoaderFunctor< ColTypes >::RClusterLoaderFunctor ( RFlat2DMatrix & chunkTensor,
std::size_t numColumns,
const std::vector< std::size_t > & maxVecSizes,
float vecPadding,
int i,
std::size_t rowOffset = 0 )
inline

Definition at line 102 of file RClusterLoader.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 ROOT::Experimental::Internal::ML::RClusterLoaderFunctor< ColTypes >::AssignToTensor ( const T & val,
int i,
int numColumns )
inlineprivate

Copy the content of a column into the current tensor when the column consists of scalar values.

Definition at line 95 of file RClusterLoader.hxx.

◆ AssignToTensor() [2/2]

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

Copy the content of a column into the current tensor when the column consists of vectors.

Definition at line 75 of file RClusterLoader.hxx.

◆ operator()()

template<typename... ColTypes>
void ROOT::Experimental::Internal::ML::RClusterLoaderFunctor< ColTypes >::operator() ( const ColTypes &... cols)
inline

Definition at line 114 of file RClusterLoader.hxx.

Member Data Documentation

◆ fChunkTensor

template<typename... ColTypes>
RFlat2DMatrix& ROOT::Experimental::Internal::ML::RClusterLoaderFunctor< ColTypes >::fChunkTensor
private

Definition at line 65 of file RClusterLoader.hxx.

◆ fI

template<typename... ColTypes>
int ROOT::Experimental::Internal::ML::RClusterLoaderFunctor< ColTypes >::fI
private

Definition at line 69 of file RClusterLoader.hxx.

◆ fMaxVecSizes

template<typename... ColTypes>
std::vector<std::size_t> ROOT::Experimental::Internal::ML::RClusterLoaderFunctor< ColTypes >::fMaxVecSizes {}
private

Definition at line 64 of file RClusterLoader.hxx.

◆ fNumChunkCols

template<typename... ColTypes>
std::size_t ROOT::Experimental::Internal::ML::RClusterLoaderFunctor< ColTypes >::fNumChunkCols
private

Definition at line 67 of file RClusterLoader.hxx.

◆ fNumColumns

template<typename... ColTypes>
int ROOT::Experimental::Internal::ML::RClusterLoaderFunctor< ColTypes >::fNumColumns
private

Definition at line 70 of file RClusterLoader.hxx.

◆ fOffset

template<typename... ColTypes>
std::size_t ROOT::Experimental::Internal::ML::RClusterLoaderFunctor< ColTypes >::fOffset {}
private

Definition at line 61 of file RClusterLoader.hxx.

◆ fVecPadding

template<typename... ColTypes>
float ROOT::Experimental::Internal::ML::RClusterLoaderFunctor< ColTypes >::fVecPadding {}
private

Definition at line 63 of file RClusterLoader.hxx.

◆ fVecSizeIdx

template<typename... ColTypes>
std::size_t ROOT::Experimental::Internal::ML::RClusterLoaderFunctor< ColTypes >::fVecSizeIdx {}
private

Definition at line 62 of file RClusterLoader.hxx.

  • tree/ml/inc/ROOT/ML/RClusterLoader.hxx