DiSMEC++
anonymous_namespace{sparse.cpp}::SetWeightsVisitor Struct Reference

Public Member Functions

 SetWeightsVisitor (label_id_t label, Eigen::SparseVector< real_t > *target)
 
void operator() (const GenericInVector::DenseRef &source)
 
void operator() (const GenericInVector::SparseRef &source)
 

Public Attributes

label_id_t Label
 
Eigen::SparseVector< real_t > * Target
 

Detailed Description

Definition at line 89 of file sparse.cpp.

Constructor & Destructor Documentation

◆ SetWeightsVisitor()

anonymous_namespace{sparse.cpp}::SetWeightsVisitor::SetWeightsVisitor ( label_id_t  label,
Eigen::SparseVector< real_t > *  target 
)
inline

Definition at line 90 of file sparse.cpp.

Member Function Documentation

◆ operator()() [1/2]

void anonymous_namespace{sparse.cpp}::SetWeightsVisitor::operator() ( const GenericInVector::DenseRef source)
inline

Definition at line 95 of file sparse.cpp.

◆ operator()() [2/2]

void anonymous_namespace{sparse.cpp}::SetWeightsVisitor::operator() ( const GenericInVector::SparseRef source)
inline

Definition at line 104 of file sparse.cpp.

Member Data Documentation

◆ Label

label_id_t anonymous_namespace{sparse.cpp}::SetWeightsVisitor::Label

Definition at line 108 of file sparse.cpp.

◆ Target

Eigen::SparseVector<real_t>* anonymous_namespace{sparse.cpp}::SetWeightsVisitor::Target

Definition at line 109 of file sparse.cpp.


The documentation for this struct was generated from the following file: