SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::datadriven::DMSystemMatrixDRE Class Referenceabstract

Abstract class that defines the virtual class base::OperationMatrix for the density ratio estimation problem. More...

#include <DMSystemMatrixDRE.hpp>

Inheritance diagram for sgpp::datadriven::DMSystemMatrixDRE:
sgpp::base::OperationMatrix sgpp::datadriven::SystemMatrixDensityRatioEstimation

Public Member Functions

 DMSystemMatrixDRE (base::DataMatrix &trainDataP, base::DataMatrix &trainDataQ, double lambda)
 Std-Constructor.
 
virtual void generateb (base::DataVector &b)=0
 Generates the right hand side of the equation.
 
virtual void getTimers (double &timeMult, double &computeMult, double &timeMultTrans, double &computeMultTrans)
 gets the timer's values by saving them into call by reference values
 
virtual void mult (base::DataVector &alpha, base::DataVector &result)=0
 starts the Multiplication with the matrix
 
virtual void prepareGrid ()
 forward declaration
 
virtual void resetTimers ()
 resets all timers to 0
 
virtual ~DMSystemMatrixDRE ()
 Std-Destructor.
 
- Public Member Functions inherited from sgpp::base::OperationMatrix
 OperationMatrix ()
 Constructor.
 
virtual ~OperationMatrix ()
 Destructor.
 

Protected Attributes

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

Detailed Description

Abstract class that defines the virtual class base::OperationMatrix for the density ratio estimation problem.

Constructor & Destructor Documentation

◆ DMSystemMatrixDRE()

sgpp::datadriven::DMSystemMatrixDRE::DMSystemMatrixDRE ( base::DataMatrix trainDataP,
base::DataMatrix trainDataQ,
double  lambda 
)

Std-Constructor.

Parameters
trainDataPmatrix with training data for first density
trainDataQmatrix with training data for second density
lambdathe lambda, the regression parameter

References myTimer_.

◆ ~DMSystemMatrixDRE()

sgpp::datadriven::DMSystemMatrixDRE::~DMSystemMatrixDRE ( )
virtual

Std-Destructor.

References myTimer_.

Member Function Documentation

◆ generateb()

virtual void sgpp::datadriven::DMSystemMatrixDRE::generateb ( base::DataVector b)
pure virtual

Generates the right hand side of the equation.

Parameters
breference to the vector that will contain the result of the matrix vector multiplication on the rhs

Implemented in sgpp::datadriven::SystemMatrixDensityRatioEstimation.

◆ getTimers()

void sgpp::datadriven::DMSystemMatrixDRE::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_.

◆ mult()

virtual void sgpp::datadriven::DMSystemMatrixDRE::mult ( base::DataVector alpha,
base::DataVector result 
)
pure virtual

starts the Multiplication with the matrix

Parameters
alphaDataVector that contains the ansatzfunctions' coefficients
resultDataVector into which the result of the Laplace operation is stored

Implements sgpp::base::OperationMatrix.

Implemented in sgpp::datadriven::SystemMatrixDensityRatioEstimation.

◆ prepareGrid()

void sgpp::datadriven::DMSystemMatrixDRE::prepareGrid ( )
virtual

forward declaration

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

Reimplemented in sgpp::datadriven::SystemMatrixDensityRatioEstimation.

◆ resetTimers()

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

Member Data Documentation

◆ completeTimeMult_

double sgpp::datadriven::DMSystemMatrixDRE::completeTimeMult_
protected

◆ completeTimeMultTrans_

double sgpp::datadriven::DMSystemMatrixDRE::completeTimeMultTrans_
protected

◆ computeTimeMult_

double sgpp::datadriven::DMSystemMatrixDRE::computeTimeMult_
protected

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

Referenced by getTimers(), sgpp::datadriven::SystemMatrixDensityRatioEstimation::mult(), and resetTimers().

◆ computeTimeMultTrans_

double sgpp::datadriven::DMSystemMatrixDRE::computeTimeMultTrans_
protected

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

Referenced by sgpp::datadriven::SystemMatrixDensityRatioEstimation::generateb(), getTimers(), sgpp::datadriven::SystemMatrixDensityRatioEstimation::mult(), and resetTimers().

◆ datasetP_

◆ datasetQ_

◆ lambda_

double sgpp::datadriven::DMSystemMatrixDRE::lambda_
protected

the lambda, the regularisation parameter

Referenced by sgpp::datadriven::SystemMatrixDensityRatioEstimation::mult().

◆ myTimer_

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

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