SG++-Doxygen-Documentation
sgpp::datadriven::DMSystemMatrixBaseSP Class Referenceabstract

Abstract class that defines the virtual class base::OperationMatrix for classification and regression problems (single precision version) More...

#include <DMSystemMatrixBaseSP.hpp>

Inheritance diagram for sgpp::datadriven::DMSystemMatrixBaseSP:
sgpp::base::OperationMatrixSP

Public Member Functions

 DMSystemMatrixBaseSP (base::DataMatrixSP &trainData, float lambda)
 Std-Constructor. More...
 
virtual void generateb (base::DataVectorSP &classes, base::DataVectorSP &b)=0
 Generates the right hand side of the classification equation. More...
 
virtual void getTimers (double &timeMult, double &computeMult, double &timeMultTrans, double &computeMultTrans)
 gets the timer's values by saving them into call by reference values More...
 
virtual void mult (base::DataVectorSP &alpha, base::DataVectorSP &result)=0
 starts the Multiplication with the Laplace matrix More...
 
virtual void rebuildLevelAndIndex ()
 forward declaration More...
 
virtual void resetTimers ()
 resets all timers to 0 More...
 
virtual ~DMSystemMatrixBaseSP ()
 Std-Destructor. More...
 
- Public Member Functions inherited from sgpp::base::OperationMatrixSP
 OperationMatrixSP ()
 Constructor. More...
 
virtual ~OperationMatrixSP ()
 Destructor. More...
 

Protected Attributes

double completeTimeMult_
 time needed for Mult More...
 
double completeTimeMultTrans_
 time needed for Mult transposed More...
 
double computeTimeMult_
 time needed only for the computation of mult, interesting on accelerator boards More...
 
double computeTimeMultTrans_
 time needed only for the computation of mult transposed, interesting on accelerator boards More...
 
base::DataMatrixSPdataset_
 the dataset More...
 
float lambda_
 the lambda, the regularisation parameter More...
 
base::SGppStopwatchmyTimer_
 Stopwatch needed to determine the durations of mult and mult transposed. More...
 

Detailed Description

Abstract class that defines the virtual class base::OperationMatrix for classification and regression problems (single precision version)

Constructor & Destructor Documentation

◆ DMSystemMatrixBaseSP()

sgpp::datadriven::DMSystemMatrixBaseSP::DMSystemMatrixBaseSP ( base::DataMatrixSP trainData,
float  lambda 
)

Std-Constructor.

Parameters
trainDatamatrix with training data
lambdathe lambda, the regression parameter

References myTimer_.

◆ ~DMSystemMatrixBaseSP()

sgpp::datadriven::DMSystemMatrixBaseSP::~DMSystemMatrixBaseSP ( )
virtual

Std-Destructor.

References myTimer_.

Member Function Documentation

◆ generateb()

virtual void sgpp::datadriven::DMSystemMatrixBaseSP::generateb ( base::DataVectorSP classes,
base::DataVectorSP b 
)
pure virtual

Generates the right hand side of the classification equation.

Parameters
classesthe class information of the training data
breference to the vector that will contain the result of the matrix vector multiplication on the rhs

Referenced by sgpp::datadriven::LearnerBaseSP::train().

◆ getTimers()

void sgpp::datadriven::DMSystemMatrixBaseSP::getTimers ( double &  timeMult,
double &  computeMult,
double &  timeMultTrans,
double &  computeMultTrans 
)
virtual

gets the timer's values by saving them into call by reference values

Parameters
timeMultvariable to store overall time needed for Mult
computeMultvariable to store compute time needed for Mult
timeMultTransvariable to store everall time needed for Mult Transposed
computeMultTransvariable to store compute time needed for Mult Transposed

References completeTimeMult_, completeTimeMultTrans_, computeTimeMult_, and computeTimeMultTrans_.

Referenced by sgpp::datadriven::LearnerBaseSP::train().

◆ mult()

virtual void sgpp::datadriven::DMSystemMatrixBaseSP::mult ( base::DataVectorSP alpha,
base::DataVectorSP result 
)
pure virtual

starts the Multiplication with the Laplace matrix

Parameters
alphaDataVectorSP that contains the ansatzfunctions' coefficients
resultDataVectorSP into which the result of the Laplace operation is stored

Implements sgpp::base::OperationMatrixSP.

◆ rebuildLevelAndIndex()

void sgpp::datadriven::DMSystemMatrixBaseSP::rebuildLevelAndIndex ( )
virtual

forward declaration

rebuilds the base::DataMatrix for Level and Index this routine is needed for supporting adaptiva grids with vectorized high performance kernels

Referenced by sgpp::datadriven::LearnerBaseSP::train().

◆ resetTimers()

void sgpp::datadriven::DMSystemMatrixBaseSP::resetTimers ( )
virtual

Member Data Documentation

◆ completeTimeMult_

double sgpp::datadriven::DMSystemMatrixBaseSP::completeTimeMult_
protected

time needed for Mult

Referenced by getTimers(), and resetTimers().

◆ completeTimeMultTrans_

double sgpp::datadriven::DMSystemMatrixBaseSP::completeTimeMultTrans_
protected

time needed for Mult transposed

Referenced by getTimers(), and resetTimers().

◆ computeTimeMult_

double sgpp::datadriven::DMSystemMatrixBaseSP::computeTimeMult_
protected

time needed only for the computation of mult, interesting on accelerator boards

Referenced by getTimers(), and resetTimers().

◆ computeTimeMultTrans_

double sgpp::datadriven::DMSystemMatrixBaseSP::computeTimeMultTrans_
protected

time needed only for the computation of mult transposed, interesting on accelerator boards

Referenced by getTimers(), and resetTimers().

◆ dataset_

base::DataMatrixSP* sgpp::datadriven::DMSystemMatrixBaseSP::dataset_
protected

the dataset

◆ lambda_

float sgpp::datadriven::DMSystemMatrixBaseSP::lambda_
protected

the lambda, the regularisation parameter

◆ myTimer_

base::SGppStopwatch* sgpp::datadriven::DMSystemMatrixBaseSP::myTimer_
protected

Stopwatch needed to determine the durations of mult and mult transposed.

Referenced by DMSystemMatrixBaseSP(), and ~DMSystemMatrixBaseSP().


The documentation for this class was generated from the following files: