SG++
sgpp::base::DataMatrix Class Reference

A class to store two-dimensional data. More...

#include <DataMatrix.hpp>

Inheritance diagram for sgpp::base::DataMatrix:

Public Member Functions

void abs ()
 Sets all elements to their absolute value. More...
 
void add (const DataMatrix &matr)
 Adds the values from another DataMatrix to the current values. More...
 
void addReduce (DataVector &reduction)
 Reduce the DataMatrix along the columns by adding all entries in one row. More...
 
void addReduce (DataVector &reduction, DataVector &beta, size_t start_beta)
 Reduce the DataMatrix along the columns by adding all entries in one row. More...
 
size_t appendCol (const DataVector &vec)
 Appends a new Col with data contained in DataVector vec and returns index of new col. More...
 
size_t appendRow ()
 Appends a new row and returns index of it. More...
 
size_t appendRow (const DataVector &vec)
 Appends a new row with data contained in DataVector vec and returns index of new row. More...
 
void componentwise_div (const DataMatrix &matr)
 Divides the current DataMatrix component-wise by another DataMatrix. More...
 
void componentwise_mult (const DataMatrix &matr)
 Multiplies the current DataMatrix component-wise with another DataMatrix. More...
 
void copyFrom (const DataMatrix &matr)
 Copies the data from another DataMatrix matr. More...
 
 DataMatrix ()
 Creates an empty two-dimensional DataMatrix. More...
 
 DataMatrix (const DataMatrix &)=default
 Copy constructor. More...
 
 DataMatrix (size_t nrows, size_t ncols)
 Create a two-dimensional DataMatrix with nrows rows and ncols columns (uninitialized values). More...
 
 DataMatrix (size_t nrows, size_t ncols, double value)
 Create a two-dimensional DataMatrix with nrows rows and ncols columns and initializes all elements with the same value. More...
 
 DataMatrix (const double *input, size_t nrows, size_t ncols)
 Create a new DataMatrix from a double array. More...
 
void expand (const DataVector &expand)
 expands a given DataVector into a DataMatrix. More...
 
double get (size_t row, size_t col) const
 Returns the value of the element at position [row,col]. More...
 
size_t getAdditionallyReservedRows () const
 Returns the number of unused rows. More...
 
void getColumn (size_t col, DataVector &vec) const
 Copies the values of a column to the DataVector vec. More...
 
size_t getNcols () const
 Returns the number of columns of the DataMatrix. More...
 
size_t getNrows () const
 Returns the number of rows of the DataMatrix. More...
 
size_t getNumberNonZero () const
 Determines the number of non-zero elements in the vector. More...
 
double * getPointer ()
 Returns pointer to double array containing underlying data. More...
 
const double * getPointer () const
 Returns const pointer to double array containing underlying data. More...
 
void getRow (size_t row, DataVector &vec) const
 Copies the values of a row to the DataVector vec. More...
 
void getRow (size_t row, std::vector< double > &vec) const
 Copies the values of a row to the std::vector vec. More...
 
size_t getSize () const
 Returns the total number of (used) elements, i.e., getNrows()*getNCols() More...
 
double max (size_t col) const
 Returns the maximum value of column col. More...
 
double max () const
 Returns the maximum over all entries. More...
 
double min (size_t col) const
 Returns the minimum value of column col. More...
 
double min () const
 Returns the minimum over all entries. More...
 
void minmax (size_t col, double *min, double *max) const
 Determines minimum and maximum of column col. More...
 
void minmax (double *min, double *max) const
 Determines minimum and maximum over all entries. More...
 
void mult (double scalar)
 Multiplies all elements by a constant factor. More...
 
void mult (const DataVector &x, DataVector &y)
 Multiplies the matrix with a vector x and stores the result in another vector y. More...
 
void normalizeDimension (size_t d)
 Normalizes the d-th dimension (entries in the d-th column) to \([0,1]\). More...
 
void normalizeDimension (size_t d, double border)
 Normalizes the d-th dimension (entries in the d-th column) to \([border,1-border]\). More...
 
double & operator() (size_t row, size_t col)
 Returns the value of the element at position [row,col]. More...
 
const double & operator() (size_t row, size_t col) const
 Returns the value of the element at position [row,col]. More...
 
DataMatrixoperator= (const DataMatrix &)=default
 Move constructor. More...
 
void reserveAdditionalRows (size_t inc_nrows)
 Reserves memory for potentially inc_nrows new rows; the actual number of rows remains unchanged. More...
 
void resize (size_t nrows)
 Resizes the DataMatrix to nrows rows. More...
 
void resize (size_t nrows, size_t ncols)
 Resizes the DataMatrix to nrows rows and ncols columns. More...
 
void resizeQuadratic (size_t size)
 Resizes the quadratic DataMatrix to size rows and size columns. More...
 
void resizeRows (size_t nrows)
 Resizes the DataMatrix to nrows rows. More...
 
void resizeRowsCols (size_t nrows, size_t ncols)
 Resizes the DataMatrix to nrows rows and ncols columns. More...
 
void resizeToSubMatrix (size_t row_1, size_t col_1, size_t row_2, size_t col_2)
 Resize current matrix to the submatrix Mat[row_1:row_2, col_1:col_2]. More...
 
void resizeZero (size_t nrows)
 Resizes the DataMatrix to nrows rows. More...
 
void resizeZero (size_t nrows, size_t ncols)
 Resizes the DataMatrix to nrows rows and ncols columns. More...
 
void set (size_t row, size_t col, double value)
 Sets the element at position [row,col] to value. More...
 
void setAll (double value)
 Sets all entries of DataMatrix to value. More...
 
void setColumn (size_t col, const DataVector &vec)
 Sets a column of the DataMatrix to the values of a DataVector vec. More...
 
void setRow (size_t row, const DataVector &vec)
 Sets a row of the DataMatrix to the values of a DataVector vec. More...
 
void sqr ()
 Squares all elements of the DataMatrix. More...
 
void sqrt ()
 Takes the square root of all elements of the DataMatrix. More...
 
void sub (const DataMatrix &matr)
 Subtracts the values from another DataMatrix of the current values. More...
 
double sum () const
 Returns the sum of all elements. More...
 
void toFile (const std::string &fileName) const
 
void toString (std::string &text) const
 Writes the data stored in the DataMatrix into a string. More...
 
std::string toString () const
 Returns a description of the DataMatrix as a string. More...
 
void transpose ()
 Transposes this DataMatrix. More...
 
 ~DataMatrix ()=default
 Move assignment operator. More...
 

Static Public Member Functions

static DataMatrix fromFile (const std::string &fileName)
 
static DataMatrix fromString (const std::string &serializedVector)
 

Detailed Description

A class to store two-dimensional data.

Typically, DataMatrix would contain a set of (d-dimensional) data or evaluation points, i.e., the DataMatrix consists of d columns, and each row is one of the points. Thus, typical functionality like obtaining the maximum for a certain dimension (or attribute), or normalizing all data points to the unit interval for a certain dimension are provided.

Constructor & Destructor Documentation

sgpp::base::DataMatrix::DataMatrix ( )

Creates an empty two-dimensional DataMatrix.

sgpp::base::DataMatrix::DataMatrix ( const DataMatrix )
default

Copy constructor.

sgpp::base::DataMatrix::~DataMatrix ( )
default

Move assignment operator.

Destructor

sgpp::base::DataMatrix::DataMatrix ( size_t  nrows,
size_t  ncols 
)

Create a two-dimensional DataMatrix with nrows rows and ncols columns (uninitialized values).

Parameters
nrowsNumber of rows
ncolsNumber of columns
sgpp::base::DataMatrix::DataMatrix ( size_t  nrows,
size_t  ncols,
double  value 
)

Create a two-dimensional DataMatrix with nrows rows and ncols columns and initializes all elements with the same value.

Parameters
nrowsNumber of rows
ncolsNumber of columns
valueValue for all entries
sgpp::base::DataMatrix::DataMatrix ( const double *  input,
size_t  nrows,
size_t  ncols 
)

Create a new DataMatrix from a double array.

The double array contains the entries row-wise: x0_0,x0_1,...,x0_ncol-1, x1_0,x1_1,... ... xnrow_0, xnrow_1,...,xnrow_ncol-1

Parameters
inputdouble array that contains the data
nrowsnumber of rows
ncolsnumber of columns

Member Function Documentation

void sgpp::base::DataMatrix::abs ( )

Sets all elements to their absolute value.

Referenced by set().

void sgpp::base::DataMatrix::addReduce ( DataVector reduction)

Reduce the DataMatrix along the columns by adding all entries in one row.

Parameters
reductionDataVector into which the reduce columns are stored

References sgpp::base::DataVector::getSize(), sgpp::base::DataVector::set(), and analyse_erg::tmp.

Referenced by set().

void sgpp::base::DataMatrix::addReduce ( DataVector reduction,
DataVector beta,
size_t  start_beta 
)

Reduce the DataMatrix along the columns by adding all entries in one row.

Parameters
reductionDataVector to which the reduce columns are added
betavector with length of number of columns beta[i] is multiplied to each element row[j][i]
start_betawhere to start using the beta coefficients

References sgpp::base::DataVector::getSize(), sgpp::base::DataVector::set(), and analyse_erg::tmp.

size_t sgpp::base::DataMatrix::appendCol ( const DataVector vec)

Appends a new Col with data contained in DataVector vec and returns index of new col.

Parameters
vecDataVector (length has to match getNcols()) with data
Returns
Index of new col

References sgpp::base::DataVector::getSize().

Referenced by sgpp::combigrid::BsplineStochasticCollocation::eval().

size_t sgpp::base::DataMatrix::appendRow ( )

Appends a new row and returns index of it.

Returns
Index of new row

Referenced by sgpp::datadriven::PrimalDualSVM::add(), sgpp::datadriven::DataBasedRefinementFunctor::computeHkl(), sgpp::combigrid::convertLevelStructureToGridPoints(), sgpp::combigrid::LevelManager::convertLevelStructureToMatrix(), fromString(), sgpp::datadriven::MetaLearner::learnAndCompareString(), sgpp::optimization::optimizer::CMAES::optimize(), sgpp::optimization::optimizer::AdaptiveGradientDescent::optimize(), sgpp::optimization::optimizer::Rprop::optimize(), sgpp::optimization::optimizer::BFGS::optimize(), sgpp::optimization::optimizer::GradientDescent::optimize(), sgpp::optimization::optimizer::NelderMead::optimize(), sgpp::optimization::optimizer::LogBarrier::optimize(), sgpp::optimization::optimizer::DifferentialEvolution::optimize(), sgpp::optimization::optimizer::NLCG::optimize(), sgpp::optimization::optimizer::MultiStart::optimize(), sgpp::optimization::optimizer::AugmentedLagrangian::optimize(), sgpp::optimization::optimizer::SquaredPenalty::optimize(), sgpp::optimization::optimizer::LevenbergMarquardt::optimize(), sgpp::optimization::optimizer::AdaptiveNewton::optimize(), sgpp::optimization::optimizer::Newton::optimize(), sgpp::datadriven::LearnerSGD::pushToBatch(), sgpp::datadriven::LearnerSGD::storeResults(), sgpp::datadriven::LearnerSVM::storeResults(), sgpp::datadriven::LearnerSGDEOnOff::storeResults(), sgpp::datadriven::LearnerSGDE::storeResults(), and sgpp::datadriven::BatchLearner::stringToDataMatrix().

size_t sgpp::base::DataMatrix::appendRow ( const DataVector vec)

Appends a new row with data contained in DataVector vec and returns index of new row.

Parameters
vecDataVector (length has to match getNcols()) with data
Returns
Index of new row

References sgpp::base::DataVector::getSize().

void sgpp::base::DataMatrix::componentwise_div ( const DataMatrix matr)

Divides the current DataMatrix component-wise by another DataMatrix.

Modifies the current values. Performs

for i from 1 to this.getTotalSize()
this[i] /= matr[i]

Note: No check for division by zero!

Parameters
matrthe DataMatrix which the current DataMatrix is divided by

Referenced by set().

void sgpp::base::DataMatrix::componentwise_mult ( const DataMatrix matr)

Multiplies the current DataMatrix component-wise with another DataMatrix.

Modifies the current values. Performs

for i from 1 to this.getSize()
this[i] *= matr[i]
Parameters
matrthe DataMatrix which is multiplied to current DataMatrix

Referenced by set().

void sgpp::base::DataMatrix::copyFrom ( const DataMatrix matr)

Copies the data from another DataMatrix matr.

Disregards the number of rows and columns set for the two matrices, i.e., just copies the data entry by entry (and row by row). If the dimensions match (nrows, ncols), the current DataMatrix is an exact copy of matr. If not, as many elements as possible are copied, and everything else is left untouched.

Parameters
matrThe source DataMatrix containing the data

Referenced by sgpp::datadriven::DBMatOfflineChol::choleskyModification().

void sgpp::base::DataMatrix::expand ( const DataVector expand)

expands a given DataVector into a DataMatrix.

Parameters
expandDataVector that should be expanded

References sgpp::base::DataVector::get(), and sgpp::base::DataVector::getSize().

Referenced by set().

DataMatrix sgpp::base::DataMatrix::fromFile ( const std::string &  fileName)
static

References python.test::f, and fromString().

DataMatrix sgpp::base::DataMatrix::fromString ( const std::string &  serializedVector)
static
double sgpp::base::DataMatrix::get ( size_t  row,
size_t  col 
) const
inline

Returns the value of the element at position [row,col].

Parameters
rowRow
colColumn
Returns
Value of the element

Referenced by sgpp::datadriven::DBMatDMSDenseIChol::choleskyBackwardSolve(), sgpp::datadriven::DBMatDMSChol::choleskyBackwardSolve(), sgpp::datadriven::DBMatDMSDenseIChol::choleskyForwardSolve(), sgpp::datadriven::DBMatDMSChol::choleskyForwardSolve(), sgpp::datadriven::DBMatOfflineDenseIChol::choleskyModification(), sgpp::datadriven::DBMatOfflineChol::choleskyModification(), sgpp::datadriven::AlgorithmAdaBoostBase::classif(), sgpp::datadriven::DataBasedRefinementFunctor::computeHkl(), sgpp::datadriven::DBMatOnlineDE::computeL2Error(), sgpp::base::PrecisionConverter::convertDataMatrixToDataMatrixSP(), sgpp::datadriven::DensityEstimator::corrcoef(), sgpp::datadriven::Friedman1Generator::createData(), sgpp::datadriven::Friedman2Generator::createData(), sgpp::datadriven::Friedman3Generator::createData(), sgpp::datadriven::DBMatOfflineDenseIChol::decomposeMatrix(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doShuffledTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doTransformation(), sgpp::combigrid::PolynomialChaosExpansion::eval(), sgpp::combigrid::PolynomialStochasticCollocation::eval(), sgpp::datadriven::AlgorithmAdaBoostBase::getAccuracyBL(), sgpp::datadriven::DBMatOfflineDenseIChol::ichol(), sgpp::pde::OperationMatrixLTwoDotPeriodic::mult(), sgpp::pde::UpDownTwoOpDims::mult(), sgpp::pde::UpDownTwoOpDims::multParallelBuildingBlock(), sgpp::datadriven::OperationMultiEvalMPI::multSlave(), sgpp::pde::OperationMatrixLTwoDotExplicitLinear::OperationMatrixLTwoDotExplicitLinear(), sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear::OperationMatrixLTwoDotExplicitModifiedLinear(), sgpp::pde::OperationMatrixLTwoDotExplicitPeriodic::OperationMatrixLTwoDotExplicitPeriodic(), sgpp::base::HierarchisationModFundamentalSpline::operator()(), sgpp::base::HierarchisationFundamentalSpline::operator()(), sgpp::base::DehierarchisationFundamentalSpline::operator()(), sgpp::base::DehierarchisationModFundamentalSpline::operator()(), sgpp::base::ImpurityRefinementIndicator::operator()(), sgpp::pde::LaplaceEnhancedDownBBLinearBoundary::operator()(), sgpp::base::PredictiveRefinementIndicator::operator()(), sgpp::datadriven::GaussianKDE::pdf(), sgpp::datadriven::OperationMultiEvalCuda::prepare(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::sherman_morrison_adapt(), sgpp::base::ForwardSelectorRefinementIndicator::update(), and sgpp::base::ImpurityRefinementIndicator::update().

size_t sgpp::base::DataMatrix::getAdditionallyReservedRows ( ) const
inline

Returns the number of unused rows.

Returns
number of unused rows

References getNumberNonZero().

Referenced by sgpp::datadriven::OperationMultipleEvalSubspaceCombined::padDataset().

void sgpp::base::DataMatrix::getColumn ( size_t  col,
DataVector vec 
) const

Copies the values of a column to the DataVector vec.

Parameters
colThe column
vecDataVector into which the data is written

References sgpp::base::DataVector::getSize().

Referenced by sgpp::datadriven::DBMatOfflineChol::choleskyModification(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostRT(), sgpp::optimization::OperationMultipleHierarchisationModBspline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModLinear::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBspline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWaveletBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinear::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModBsplineClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearClenshawCurtis::doDehierarchisation(), sgpp::base::OperationEval::eval(), sgpp::base::OperationEvalGradient::evalGradient(), sgpp::base::OperationEvalHessian::evalHessian(), sgpp::base::OperationEvalPartialDerivative::evalPartialDerivative(), set(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::sherman_morrison_adapt(), sgpp::optimization::sle_solver::GaussianElimination::solve(), sgpp::optimization::sle_solver::Eigen::solve(), sgpp::optimization::sle_solver::Armadillo::solve(), sgpp::optimization::sle_solver::UMFPACK::solve(), and sgpp::optimization::sle_solver::SLESolver::solve().

size_t sgpp::base::DataMatrix::getNcols ( ) const
inline

Returns the number of columns of the DataMatrix.

Returns
Number of columns

References normalizeDimension(), toFile(), and toString().

Referenced by sgpp::datadriven::ClusteringOCL::OperationClusteringOCL< T >::calculate_clusters(), sgpp::datadriven::DBMatDMSChol::choleskyBackwardSolve(), sgpp::datadriven::DBMatDMSChol::choleskyForwardSolve(), sgpp::datadriven::DBMatOfflineChol::choleskyModification(), sgpp::datadriven::DBMatDMSChol::choleskyUpdateLambda(), sgpp::datadriven::DBMatOnlineDE::computeDensityFunction(), sgpp::datadriven::DataBasedRefinementFunctor::computeH(), sgpp::datadriven::DataBasedRefinementFunctor::computeHkl(), sgpp::datadriven::DBMatOnlineDE::computeL2Error(), sgpp::base::PrecisionConverter::convertDataMatrixSPToDataMatrix(), sgpp::base::PrecisionConverter::convertDataMatrixToDataMatrixSP(), sgpp::datadriven::DensityEstimator::corrcoef(), sgpp::datadriven::GaussianKDE::cov(), sgpp::datadriven::LearnerSGDE::cov(), sgpp::datadriven::DBMatOnlineDE::DBMatOnlineDE(), sgpp::datadriven::DBMatOfflineDenseIChol::decomposeMatrix(), sgpp::optimization::OperationMultipleHierarchisationBspline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinear::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModBspline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModLinear::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWaveletBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModBsplineClenshawCurtis::doDehierarchisation(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation(), sgpp::base::OperationEvalModPolyNaive::eval(), sgpp::base::OperationEvalPolyBoundaryNaive::eval(), sgpp::base::OperationEvalPolyNaive::eval(), sgpp::base::OperationEvalLinearNaive::eval(), sgpp::base::OperationEvalLinearBoundaryNaive::eval(), sgpp::base::OperationEvalLinearClenshawCurtisNaive::eval(), sgpp::base::OperationEvalModLinearNaive::eval(), sgpp::base::OperationEval::eval(), sgpp::base::OperationEvalModWaveletNaive::eval(), sgpp::base::OperationEvalNakBsplineBoundaryCombigridNaive::eval(), sgpp::base::OperationEvalWaveletBoundaryNaive::eval(), sgpp::base::OperationEvalWaveletNaive::eval(), sgpp::base::OperationEvalBsplineBoundaryNaive::eval(), sgpp::base::OperationEvalModBsplineNaive::eval(), sgpp::base::OperationEvalModFundamentalSplineNaive::eval(), sgpp::base::OperationEvalBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalFundamentalSplineNaive::eval(), sgpp::base::OperationEvalModBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalBsplineNaive::eval(), sgpp::base::OperationEvalGradient::evalGradient(), sgpp::base::OperationEvalGradientWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientModWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientWaveletBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalHessian::evalHessian(), sgpp::base::OperationEvalHessianModWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianWaveletBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalHessianFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalPartialDerivative::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModWaveletNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeWaveletBoundaryNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeWaveletNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeBsplineBoundaryNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeBsplineClenshawCurtisNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeBsplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeFundamentalSplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModBsplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModFundamentalSplineNaive::evalPartialDerivative(), sgpp::base::OperationEvalPartialDerivativeModBsplineClenshawCurtisNaive::evalPartialDerivative(), sgpp::base::ForwardSelectorRefinementIndicator::ForwardSelectorRefinementIndicator(), sgpp::datadriven::LearnerSVM::getError(), sgpp::quadrature::SampleGenerator::getSamples(), sgpp::datadriven::GaussianKDE::initialize(), sgpp::datadriven::LearnerSGD::initialize(), sgpp::datadriven::LearnerSVM::initialize(), sgpp::datadriven::LearnerSGDE::initialize(), sgpp::datadriven::DBMatOfflineOrthoAdapt::invert_symmetric_tridiag(), sgpp::datadriven::LearnerSGD::LearnerSGD(), main(), sgpp::datadriven::OperationMultiEvalStreaming::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitPeriodic::mult(), sgpp::base::OperationMultipleEvalInterModLinear::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitLinear::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitLinearBoundary::mult(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::mult(), sgpp::base::AlgorithmMultipleEvaluation< BASIS >::mult(), sgpp::base::AlgorithmDGEMV< BASIS >::mult(), sgpp::base::AlgorithmMultipleEvaluation< BASIS >::mult_transpose(), sgpp::base::AlgorithmDGEMV< BASIS >::mult_transposed(), sgpp::datadriven::OperationMultipleEvalSubspaceSimple::multImpl(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::multImpl(), sgpp::datadriven::OperationMultiEvalMPI::multSlave(), sgpp::datadriven::OperationMultiEvalStreaming::multTranspose(), sgpp::base::OperationMultipleEvalInterModLinear::multTranspose(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::multTranspose(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::multTranspose(), sgpp::datadriven::OperationMultipleEvalSubspaceSimple::multTransposeImpl(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::multTransposeImpl(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::OperationMultiEvalStreamingBSplineOCL(), sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::OperationMultiEvalStreamingModOCLFastMultiPlatform(), sgpp::datadriven::OperationMultiEvalStreamingModOCLMaskMultiPlatform< T >::OperationMultiEvalStreamingModOCLMaskMultiPlatform(), sgpp::datadriven::OperationMultiEvalStreamingModOCLOpt< T >::OperationMultiEvalStreamingModOCLOpt(), sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::OperationMultiEvalStreamingModOCLUnified(), sgpp::datadriven::StreamingOCLMultiPlatform::OperationMultiEvalStreamingOCLMultiPlatform< T >::OperationMultiEvalStreamingOCLMultiPlatform(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::OperationMultipleEvalSubspaceCombined(), sgpp::datadriven::OperationMultipleEvalSubspaceSimple::OperationMultipleEvalSubspaceSimple(), sgpp::datadriven::DataBasedRefinementFunctor::operator()(), sgpp::base::HierarchisationModFundamentalSpline::operator()(), sgpp::base::HierarchisationFundamentalSpline::operator()(), sgpp::base::DehierarchisationFundamentalSpline::operator()(), sgpp::base::DehierarchisationModFundamentalSpline::operator()(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::padDataset(), sgpp::datadriven::PiecewiseConstantSmoothedRegressionMetaLearner::PiecewiseConstantSmoothedRegressionMetaLearner(), sgpp::datadriven::LearnerDensityBasedReg::predict(), sgpp::datadriven::LearnerDensityBased::predict(), sgpp::datadriven::LearnerSVM::predict(), sgpp::datadriven::BatchLearner::predict(), sgpp::datadriven::LearnerSGDE::predict(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLOpt< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLMaskMultiPlatform< T >::prepare(), sgpp::datadriven::DBMatOffline::printMatrix(), sgpp::datadriven::ARFFTools::readARFFFromString(), sgpp::datadriven::CSVTools::readCSVSize(), sgpp::datadriven::SortedDataset::restoreOrder(), sgpp::datadriven::MPIMethods::sendSystemMatrixDecomposition(), sgpp::combigrid::CombigridMultiOperation::setParameters(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::sherman_morrison_adapt(), sgpp::datadriven::DBMatDMSChol::solve(), sgpp::datadriven::DBMatDMSOrthoAdapt::solve(), sgpp::optimization::sle_solver::Eigen::solve(), sgpp::optimization::sle_solver::Armadillo::solve(), sgpp::optimization::sle_solver::UMFPACK::solve(), sgpp::optimization::sle_solver::SLESolver::solve(), sgpp::datadriven::DBMatOnlineDEChol::solveSLE(), sgpp::datadriven::DatasetTools::splitset(), sgpp::datadriven::DBMatOffline::store(), sgpp::datadriven::LearnerSGD::storeResults(), sgpp::datadriven::LearnerSVM::storeResults(), sgpp::datadriven::LearnerSGDE::storeResults(), sgpp::datadriven::test_dataset(), sgpp::datadriven::test_dataset_mse(), sgpp::datadriven::test_datasetWithCharacteristicNumber(), sgpp::datadriven::LearnerDensityBasedReg::train(), sgpp::datadriven::LearnerDensityBased::train(), sgpp::datadriven::LearnerSGD::train(), sgpp::datadriven::LearnerSVM::train(), sgpp::datadriven::LearnerSGDE::train(), sgpp::datadriven::SortedDataset::usePermutation(), and sgpp::optimization::file_io::writeMatrix().

size_t sgpp::base::DataMatrix::getNrows ( ) const
inline

Returns the number of rows of the DataMatrix.

Returns
Number of rows

Referenced by sgpp::datadriven::PrimalDualSVM::add(), sgpp::datadriven::AlgorithmAdaBoostBase::AlgorithmAdaBoostBase(), sgpp::datadriven::ClusteringOCL::OperationClusteringOCL< T >::calculate_clusters(), sgpp::datadriven::PiecewiseConstantSmoothedRegressionMetaLearner::calculateMSE(), sgpp::datadriven::DBMatOfflineChol::choleskyAddPoint(), sgpp::datadriven::DBMatDMSChol::choleskyDowndate(), sgpp::datadriven::DBMatDMSDenseIChol::choleskyForwardSolve(), sgpp::datadriven::DBMatOfflineDenseIChol::choleskyModification(), sgpp::datadriven::DBMatOfflineChol::choleskyModification(), sgpp::datadriven::DBMatOfflineChol::choleskyPermutation(), sgpp::datadriven::DBMatDMSChol::choleskyUpdate(), sgpp::datadriven::AlgorithmAdaBoostBase::classif(), sgpp::datadriven::DBMatOnlineDE::computeDensityFunction(), sgpp::datadriven::DataBasedRefinementFunctor::computeH(), sgpp::datadriven::DataBasedRefinementFunctor::computeHkl(), sgpp::datadriven::DBMatOnlineDE::computeL2Error(), sgpp::base::PrecisionConverter::convertDataMatrixSPToDataMatrix(), sgpp::base::PrecisionConverter::convertDataMatrixToDataMatrixSP(), sgpp::datadriven::GaussianKDE::cov(), sgpp::datadriven::LearnerSGDE::cov(), sgpp::datadriven::DBMatOfflineDenseIChol::decomposeMatrix(), sgpp::datadriven::DBMatOfflineChol::decomposeMatrix(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostRT(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), sgpp::datadriven::OperationRosenblattTransformationKDE::doShuffledTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doShuffledTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation(), sgpp::datadriven::OperationRosenblattTransformationKDE::doTransformation(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doTransformation(), sgpp::combigrid::PolynomialChaosExpansion::eval(), sgpp::combigrid::PolynomialStochasticCollocation::eval(), sgpp::base::OperationEval::eval(), sgpp::base::OperationEvalGradient::evalGradient(), sgpp::base::OperationEvalHessian::evalHessian(), sgpp::base::OperationEvalPartialDerivative::evalPartialDerivative(), sgpp::pde::PDESolver::evaluateCuboid(), sgpp::base::ForwardSelectorRefinementIndicator::ForwardSelectorRefinementIndicator(), fromString(), sgpp::datadriven::DensitySystemMatrix::generateb(), sgpp::datadriven::LearnerSGD::getAccuracy(), sgpp::datadriven::LearnerSVM::getAccuracy(), sgpp::datadriven::LearnerBase::getAccuracy(), sgpp::datadriven::LearnerSGDE::getAccuracy(), sgpp::datadriven::AlgorithmAdaBoostBase::getAccuracy(), sgpp::datadriven::AlgorithmAdaBoostBase::getAccuracyBL(), sgpp::datadriven::LearnerSGD::getBatchError(), sgpp::datadriven::LearnerBase::getCassificatorQuality(), sgpp::optimization::FullSLE::getDimension(), sgpp::datadriven::LearnerSGD::getError(), sgpp::datadriven::LearnerSVM::getError(), sgpp::datadriven::PiecewiseConstantRegression::Node::getMSE(), sgpp::datadriven::AbstractOperationMultipleEvalSubspace::getPaddedDatasetSize(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::getPaddedDatasetSize(), sgpp::datadriven::AlgorithmAdaBoostBase::getROC(), sgpp::quadrature::SampleGenerator::getSamples(), sgpp::optimization::math::hessenbergForm(), sgpp::datadriven::OperationPiecewiseConstantRegression::hierarchize(), sgpp::optimization::math::householderTransformation(), sgpp::datadriven::DBMatOfflineDenseIChol::ichol(), sgpp::datadriven::GaussianKDE::initialize(), sgpp::datadriven::DBMatOfflineOrthoAdapt::invert_symmetric_tridiag(), sgpp::datadriven::MetaLearner::learnAndCompareString(), sgpp::datadriven::MetaLearner::learnAndTestString(), main(), sgpp::datadriven::OperationMultiEvalHPX::mult(), sgpp::datadriven::OperationMultiEvalMPI::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitPeriodic::mult(), sgpp::base::OperationMultipleEvalInterModLinear::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitLinear::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitLinearBoundary::mult(), sgpp::datadriven::DMSystemMatrix::mult(), sgpp::datadriven::OperationMultiEvalStreaming::multTranspose(), sgpp::base::OperationMultipleEvalInterModLinear::multTranspose(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::multTranspose(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::OperationMultiEvalStreamingBSplineOCL(), sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::OperationMultiEvalStreamingModOCLFastMultiPlatform(), sgpp::datadriven::OperationMultiEvalStreamingModOCLMaskMultiPlatform< T >::OperationMultiEvalStreamingModOCLMaskMultiPlatform(), sgpp::datadriven::OperationMultiEvalStreamingModOCLOpt< T >::OperationMultiEvalStreamingModOCLOpt(), sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::OperationMultiEvalStreamingModOCLUnified(), sgpp::datadriven::StreamingOCLMultiPlatform::OperationMultiEvalStreamingOCLMultiPlatform< T >::OperationMultiEvalStreamingOCLMultiPlatform(), sgpp::base::ImpurityRefinementIndicator::operator()(), sgpp::base::PredictiveRefinementIndicator::operator()(), sgpp::optimization::optimizer::LogBarrier::optimize(), sgpp::optimization::optimizer::MultiStart::optimize(), sgpp::optimization::optimizer::SquaredPenalty::optimize(), sgpp::optimization::optimizer::AugmentedLagrangian::optimize(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::padDataset(), sgpp::datadriven::GaussianKDE::pdf(), sgpp::datadriven::LearnerLeastSquaresIdentity::postProcessing(), sgpp::datadriven::LearnerLeastSquaresIdentity::predict(), sgpp::datadriven::LearnerDensityBasedReg::predict(), sgpp::datadriven::ClassificationLearner::predict(), sgpp::datadriven::LearnerDensityBased::predict(), sgpp::datadriven::LearnerSGDEOnOff::predict(), sgpp::datadriven::LearnerSVM::predict(), sgpp::datadriven::BatchLearner::predict(), sgpp::datadriven::LearnerSGD::predict(), sgpp::datadriven::RegressionLearner::predict(), sgpp::datadriven::LearnerBase::predict(), sgpp::datadriven::LearnerSGDE::predict(), sgpp::datadriven::ClassificationLearner::predictWithCertainty(), sgpp::datadriven::OperationMultiEvalCuda::prepare(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLOpt< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLMaskMultiPlatform< T >::prepare(), sgpp::datadriven::StreamingOCLMultiPlatform::OperationMultiEvalStreamingOCLMultiPlatform< T >::prepare(), sgpp::datadriven::DBMatOffline::printMatrix(), sgpp::datadriven::LearnerSGD::pushToBatch(), sgpp::optimization::math::QRDecomposition(), sgpp::optimization::math::schurDecomposition(), sgpp::datadriven::MPIMethods::sendSystemMatrixDecomposition(), sgpp::combigrid::CombigridMultiOperation::setParameters(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::sherman_morrison_adapt(), sgpp::datadriven::DBMatDMSOrthoAdapt::solve(), sgpp::datadriven::DatasetTools::splitset(), sgpp::datadriven::DBMatOffline::store(), sgpp::datadriven::LearnerSGD::storeResults(), sgpp::datadriven::LearnerSVM::storeResults(), sgpp::datadriven::LearnerSGDEOnOff::storeResults(), sgpp::datadriven::LearnerSGDE::storeResults(), sgpp::datadriven::SystemMatrixLeastSquaresIdentity::SystemMatrixLeastSquaresIdentity(), sgpp::datadriven::test_calculateROCcurve(), sgpp::datadriven::test_dataset(), sgpp::datadriven::test_dataset_mse(), sgpp::datadriven::test_datasetWithCharacteristicNumber(), sgpp::datadriven::LearnerLeastSquaresIdentity::testRegular(), sgpp::datadriven::LearnerDensityBasedReg::train(), sgpp::datadriven::LearnerDensityBased::train(), sgpp::datadriven::LearnerSGD::train(), sgpp::datadriven::LearnerSVM::train(), sgpp::datadriven::LearnerBase::train(), sgpp::datadriven::RegressionLearner::train(), sgpp::base::ForwardSelectorRefinementIndicator::update(), sgpp::base::ImpurityRefinementIndicator::update(), sgpp::pde::UpDownOneOpDimEnhanced::updown(), and sgpp::optimization::file_io::writeMatrix().

size_t sgpp::base::DataMatrix::getNumberNonZero ( ) const

Determines the number of non-zero elements in the vector.

Returns
The number of non-zero elements

Referenced by getAdditionallyReservedRows().

double * sgpp::base::DataMatrix::getPointer ( )

Returns pointer to double array containing underlying data.

Returns
Pointer to data

Referenced by sgpp::datadriven::DBMatOfflineChol::choleskyAddPoint(), sgpp::datadriven::DBMatDMSChol::choleskyDowndate(), sgpp::datadriven::DBMatOfflineChol::choleskyPermutation(), sgpp::datadriven::DBMatDMSChol::choleskyUpdate(), sgpp::datadriven::DBMatOfflineOrthoAdapt::DBMatOfflineOrthoAdapt(), sgpp::datadriven::DBMatOfflineChol::decomposeMatrix(), sgpp::datadriven::DensityOCLMultiPlatform::OperationDensityOCLMultiPlatform< T >::generateb(), sgpp::datadriven::DBMatOfflineOrthoAdapt::hessenberg_decomposition(), sgpp::datadriven::DensityOCLMultiPlatform::OperationDensityOCLMultiPlatform< T >::initialize_dataset(), sgpp::pde::OperationMatrixLTwoDotExplicitPeriodic::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitLinear::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitLinearBoundary::mult(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::multImpl(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::multTransposeImpl(), sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCLSingleDevice< T >::OperationCreateGraphOCLSingleDevice(), sgpp::datadriven::DensityOCLMultiPlatform::OperationPruneGraphOCLMultiPlatform< T >::OperationPruneGraphOCLMultiPlatform(), sgpp::pde::LaplaceEnhancedDownBBLinearBoundary::operator()(), sgpp::pde::LaplaceEnhancedUpBBLinearBoundary::operator()(), sgpp::pde::LaplaceEnhancedUpBBLinear::operator()(), sgpp::pde::LaplaceEnhancedDownBBLinear::operator()(), set(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::sherman_morrison_adapt(), sgpp::datadriven::DBMatDMSOrthoAdapt::solve(), sgpp::optimization::sle_solver::Armadillo::solve(), sgpp::datadriven::DBMatOfflineOrthoAdapt::store(), sgpp::datadriven::DBMatOffline::store(), sgpp::datadriven::LearnerDensityBasedReg::train(), and sgpp::optimization::file_io::writeMatrix().

const double * sgpp::base::DataMatrix::getPointer ( ) const

Returns const pointer to double array containing underlying data.

Returns
Const pointer to data
void sgpp::base::DataMatrix::getRow ( size_t  row,
DataVector vec 
) const

Copies the values of a row to the DataVector vec.

Parameters
rowThe row
vecDataVector into which the data is written

References sgpp::base::DataVector::getSize().

Referenced by sgpp::datadriven::LearnerSGDEOnOffParallel::assembleNextBatchData(), sgpp::datadriven::PiecewiseConstantSmoothedRegressionMetaLearner::calculateMSE(), sgpp::datadriven::DataBasedRefinementFunctor::computeHkl(), sgpp::datadriven::DBMatOnlineDE::computeL2Error(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostRT(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::quadrature::OperationQuadratureMCAdvanced::doQuadratureFunc(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), sgpp::datadriven::OperationRosenblattTransformationKDE::doShuffledTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doShuffledTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation(), sgpp::datadriven::OperationRosenblattTransformationKDE::doTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doTransformation(), sgpp::base::ForwardSelectorRefinementIndicator::ForwardSelectorRefinementIndicator(), sgpp::datadriven::LearnerSVM::getError(), sgpp::datadriven::PiecewiseConstantRegression::Node::getMSE(), sgpp::datadriven::PiecewiseConstantRegression::Node::getSupportIndizes(), sgpp::datadriven::GaussianKDE::initialize(), sgpp::base::OperationMultipleEvalInterModLinear::mult(), sgpp::base::AlgorithmMultipleEvaluation< BASIS >::mult(), sgpp::base::AlgorithmDGEMV< BASIS >::mult(), sgpp::base::AlgorithmMultipleEvaluation< BASIS >::mult_transpose(), sgpp::base::AlgorithmDGEMV< BASIS >::mult_transposed(), sgpp::datadriven::OperationMultipleEvalSubspaceSimple::multImpl(), sgpp::datadriven::OperationMultiEvalStreaming::multTranspose(), sgpp::base::OperationMultipleEvalInterModLinear::multTranspose(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::multTranspose(), sgpp::datadriven::OperationMultipleEvalSubspaceSimple::multTransposeImpl(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::padDataset(), sgpp::datadriven::LearnerDensityBasedReg::predict(), sgpp::datadriven::LearnerDensityBased::predict(), sgpp::datadriven::LearnerSVM::predict(), sgpp::datadriven::BatchLearner::predict(), sgpp::datadriven::LearnerSGDE::predict(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLOpt< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLMaskMultiPlatform< T >::prepare(), sgpp::datadriven::StreamingOCLMultiPlatform::OperationMultiEvalStreamingOCLMultiPlatform< T >::prepare(), set(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::sherman_morrison_adapt(), sgpp::datadriven::LearnerSGDEOnOffParallel::splitBatchIntoClasses(), sgpp::datadriven::DatasetTools::splitset(), sgpp::datadriven::Scorer::splitSet(), sgpp::datadriven::LearnerSGD::storeResults(), sgpp::datadriven::LearnerSVM::storeResults(), sgpp::datadriven::LearnerSGDEOnOff::storeResults(), sgpp::datadriven::LearnerSGDE::storeResults(), sgpp::datadriven::test_dataset(), sgpp::datadriven::test_dataset_mse(), sgpp::datadriven::test_datasetWithCharacteristicNumber(), sgpp::datadriven::LearnerDensityBased::train(), sgpp::datadriven::LearnerSGD::train(), sgpp::datadriven::LearnerSGDEOnOff::train(), and sgpp::datadriven::LearnerSVM::train().

void sgpp::base::DataMatrix::getRow ( size_t  row,
std::vector< double > &  vec 
) const

Copies the values of a row to the std::vector vec.

Parameters
rowThe row
vecstd::vector into which the data is written
size_t sgpp::base::DataMatrix::getSize ( ) const
inline

Returns the total number of (used) elements, i.e., getNrows()*getNCols()

Returns
Number of elements stored in the matrix

Referenced by python.uq.uq_setting.UQSetting.UQSetting::convert(), sgpp::datadriven::DensityOCLMultiPlatform::OperationDensityOCLMultiPlatform< T >::generateb(), python.uq.uq_setting.UQSetting.UQSetting::getTimeDependentResults(), sgpp::datadriven::DBMatOfflineDenseIChol::ichol(), sgpp::datadriven::DensityOCLMultiPlatform::OperationDensityOCLMultiPlatform< T >::initialize_dataset(), sgpp::datadriven::DensityOCLMultiPlatform::OperationCreateGraphOCLSingleDevice< T >::OperationCreateGraphOCLSingleDevice(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::OperationMultiEvalStreamingBSplineOCL(), sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::OperationMultiEvalStreamingModOCLFastMultiPlatform(), sgpp::datadriven::OperationMultiEvalStreamingModOCLMaskMultiPlatform< T >::OperationMultiEvalStreamingModOCLMaskMultiPlatform(), sgpp::datadriven::OperationMultiEvalStreamingModOCLOpt< T >::OperationMultiEvalStreamingModOCLOpt(), sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::OperationMultiEvalStreamingModOCLUnified(), sgpp::datadriven::StreamingOCLMultiPlatform::OperationMultiEvalStreamingOCLMultiPlatform< T >::OperationMultiEvalStreamingOCLMultiPlatform(), sgpp::datadriven::DensityOCLMultiPlatform::OperationPruneGraphOCLMultiPlatform< T >::OperationPruneGraphOCLMultiPlatform(), python.uq.uq_setting.UQSetting.UQSetting::runSamples(), and python.uq.uq_setting.UQSetting.UQSetting::runSamples_withoutDistribution().

double sgpp::base::DataMatrix::max ( size_t  col) const

Returns the maximum value of column col.

Parameters
colNumber of the column
Returns
Maximum value

References max().

double sgpp::base::DataMatrix::max ( ) const

Returns the maximum over all entries.

Returns
Maximal value of all entries

Referenced by max(), and set().

double sgpp::base::DataMatrix::min ( size_t  col) const

Returns the minimum value of column col.

Parameters
colNumber of the column
Returns
Minimum value

References min().

double sgpp::base::DataMatrix::min ( ) const

Returns the minimum over all entries.

Returns
Minimal value of all entries

Referenced by min(), and set().

void sgpp::base::DataMatrix::minmax ( size_t  col,
double *  min,
double *  max 
) const

Determines minimum and maximum of column col.

Parameters
colNumber of the column
minReference variable for the minimum
maxReference variable for the maximum

Referenced by normalizeDimension(), and set().

void sgpp::base::DataMatrix::minmax ( double *  min,
double *  max 
) const

Determines minimum and maximum over all entries.

Parameters
minReference variable for the minimum
maxReference variable for the maximum
void sgpp::base::DataMatrix::mult ( double  scalar)

Multiplies all elements by a constant factor.

Parameters
scalarthe constant

Referenced by sgpp::optimization::optimizer::CMAES::optimize(), sgpp::optimization::optimizer::LevenbergMarquardt::optimize(), and set().

void sgpp::base::DataMatrix::mult ( const DataVector x,
DataVector y 
)

Multiplies the matrix with a vector x and stores the result in another vector y.

Parameters
[in]xvector to be multiplied
[out]yvector in which the result should be stored

References sgpp::base::DataVector::getSize().

void sgpp::base::DataMatrix::normalizeDimension ( size_t  d)

Normalizes the d-th dimension (entries in the d-th column) to \([0,1]\).

Considers contents of DataMatrix as a d-dimensional dataset, one data point per row.

Parameters
dThe dimension (column) that should be normalized (starting with 0)

Referenced by sgpp::datadriven::Friedman2Generator::createData(), sgpp::datadriven::Friedman3Generator::createData(), and getNcols().

void sgpp::base::DataMatrix::normalizeDimension ( size_t  d,
double  border 
)

Normalizes the d-th dimension (entries in the d-th column) to \([border,1-border]\).

Considers contents of DataMatrix as a d-dimensional dataset, one data point per row.

Parameters
dThe dimension (column) that should be normalized (starting with 0)
borderWidth of the border

References minmax().

double& sgpp::base::DataMatrix::operator() ( size_t  row,
size_t  col 
)
inline

Returns the value of the element at position [row,col].

Parameters
rowRow
colColumn
Returns
reference to the element
const double& sgpp::base::DataMatrix::operator() ( size_t  row,
size_t  col 
) const
inline

Returns the value of the element at position [row,col].

Parameters
rowRow
colColumn
Returns
constant reference to the element
DataMatrix& sgpp::base::DataMatrix::operator= ( const DataMatrix )
default

Move constructor.

Copy assignment operator

Referenced by resizeQuadratic(), resizeToSubMatrix(), and transpose().

void sgpp::base::DataMatrix::reserveAdditionalRows ( size_t  inc_nrows)

Reserves memory for potentially inc_nrows new rows; the actual number of rows remains unchanged.

Corresponds to a resize to nrows+inc_nrows new rows while leaving the current matrix' size unchanged.

Parameters
inc_nrowsNumber of additional rows for which storage is to be reserved.

Referenced by sgpp::datadriven::LearnerSGD::LearnerSGD(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::padDataset(), sgpp::datadriven::PrimalDualSVM::PrimalDualSVM(), and resizeToSubMatrix().

void sgpp::base::DataMatrix::resize ( size_t  nrows)

Resizes the DataMatrix to nrows rows.

All new additional entries are uninitialized. If nrows is smaller than the current number of rows, all superfluous entries are removed.

Deprecated:
use resizeRows
Parameters
nrowsNew number of rows of the DataMatrix

References resizeRows().

Referenced by sgpp::datadriven::DataBasedRefinementFunctor::computeH(), sgpp::datadriven::LearnerSGDE::cov(), sgpp::datadriven::Friedman1Generator::createData(), sgpp::datadriven::Friedman2Generator::createData(), sgpp::datadriven::Friedman3Generator::createData(), sgpp::base::OperationEvalGradient::evalGradient(), sgpp::base::OperationEvalGradientWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientWaveletBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientModWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradientModFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalHessian::evalHessian(), sgpp::base::OperationEvalHessianModWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianWaveletBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineClenshawCurtisNaive::evalHessian(), fromString(), sgpp::base::EvalCuboidGenerator::getEvaluationCuboid(), sgpp::base::EvalCuboidGeneratorForStretching::getEvaluationCuboid(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::getMaxInversionError(), sgpp::optimization::math::hessenbergForm(), sgpp::datadriven::OperationMultiEvalStreaming::multTranspose(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::multTranspose(), sgpp::optimization::optimizer::CMAES::optimize(), sgpp::optimization::optimizer::AdaptiveGradientDescent::optimize(), sgpp::optimization::optimizer::Rprop::optimize(), sgpp::optimization::optimizer::BFGS::optimize(), sgpp::optimization::optimizer::GradientDescent::optimize(), sgpp::optimization::optimizer::NelderMead::optimize(), sgpp::optimization::optimizer::LogBarrier::optimize(), sgpp::optimization::optimizer::DifferentialEvolution::optimize(), sgpp::optimization::optimizer::NLCG::optimize(), sgpp::optimization::optimizer::MultiStart::optimize(), sgpp::optimization::optimizer::SquaredPenalty::optimize(), sgpp::optimization::optimizer::AugmentedLagrangian::optimize(), sgpp::optimization::optimizer::LevenbergMarquardt::optimize(), sgpp::optimization::optimizer::AdaptiveNewton::optimize(), sgpp::optimization::optimizer::Newton::optimize(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::padDataset(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLOpt< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLMaskMultiPlatform< T >::prepare(), sgpp::datadriven::StreamingOCLMultiPlatform::OperationMultiEvalStreamingOCLMultiPlatform< T >::prepare(), sgpp::optimization::math::QRDecomposition(), sgpp::optimization::file_io::readMatrix(), sgpp::optimization::math::schurDecomposition(), sgpp::optimization::sle_solver::Armadillo::solve(), sgpp::optimization::sle_solver::Eigen::solve(), sgpp::optimization::sle_solver::UMFPACK::solve(), sgpp::optimization::sle_solver::SLESolver::solve(), sgpp::datadriven::BatchLearner::stringToDataMatrix(), and sgpp::datadriven::test_calculateROCcurve().

void sgpp::base::DataMatrix::resize ( size_t  nrows,
size_t  ncols 
)

Resizes the DataMatrix to nrows rows and ncols columns.

All new additional entries are uninitialized. If nrows*ncols is smaller than the current number of entries, all superfluous entries are removed.

Deprecated:
use resizeRowsCols
Parameters
nrowsNew number of rows of the DataMatrix
ncolsNew number of columns of the DataMatrix

References resizeRowsCols().

void sgpp::base::DataMatrix::resizeQuadratic ( size_t  size)

Resizes the quadratic DataMatrix to size rows and size columns.

All new additional entries are uninitialized. If size is smaller than the current size of the quadratic DataMatrix, all superfluous entries are removed.

Parameters
sizeNew dimension of quadratic data DataMatrix

References operator=().

Referenced by sgpp::datadriven::DBMatOfflineOrthoAdapt::buildMatrix(), sgpp::datadriven::DBMatOfflineChol::choleskyModification(), sgpp::datadriven::DBMatDMSDenseIChol::DBMatDMSDenseIChol(), and sgpp::datadriven::DBMatOnlineDEOrthoAdapt::sherman_morrison_adapt().

void sgpp::base::DataMatrix::resizeRows ( size_t  nrows)

Resizes the DataMatrix to nrows rows.

All new additional entries are uninitialized. If nrows is smaller than the current number of rows, all superfluous entries are removed.

Parameters
nrowsNew number of rows of the DataMatrix

Referenced by resize(), and resizeZero().

void sgpp::base::DataMatrix::resizeRowsCols ( size_t  nrows,
size_t  ncols 
)

Resizes the DataMatrix to nrows rows and ncols columns.

All new additional entries are uninitialized. If nrows*ncols is smaller than the current number of entries, all superfluous entries are removed.

Parameters
nrowsNew number of rows of the DataMatrix
ncolsNew number of columns of the DataMatrix

Referenced by sgpp::datadriven::MPIMethods::receiveGridComponentsUpdate(), resize(), and resizeZero().

void sgpp::base::DataMatrix::resizeToSubMatrix ( size_t  row_1,
size_t  col_1,
size_t  row_2,
size_t  col_2 
)

Resize current matrix to the submatrix Mat[row_1:row_2, col_1:col_2].

Parameters
row_1,col_1corresponding to left upper index of desired submatrix
row_2,col_2corresponding to right lower index of desired submatrix

References operator=(), and reserveAdditionalRows().

Referenced by sgpp::datadriven::DBMatOfflineChol::choleskyModification().

void sgpp::base::DataMatrix::resizeZero ( size_t  nrows)

Resizes the DataMatrix to nrows rows.

All new additional entries are set to zero. If nrows is smaller than the current number of rows, all superfluous entries are removed.

Deprecated:
use resizeRows
Parameters
nrowsNew number of rows of the DataMatrix

References resizeRows().

void sgpp::base::DataMatrix::resizeZero ( size_t  nrows,
size_t  ncols 
)

Resizes the DataMatrix to nrows rows and ncols columns.

All new additional entries are set to zero. If nrows*ncols is smaller than the current number of entries, all superfluous entries are removed.

Deprecated:
use resizeRowsCols
Parameters
nrowsNew number of rows of the DataMatrix
ncolsNew number of columns of the DataMatrix

References resizeRowsCols().

void sgpp::base::DataMatrix::set ( size_t  row,
size_t  col,
double  value 
)
inline

Sets the element at position [row,col] to value.

Parameters
rowRow
colColumn
valueNew value for element

References abs(), add(), addReduce(), componentwise_div(), componentwise_mult(), expand(), getColumn(), getPointer(), getRow(), max(), min(), minmax(), mult(), setColumn(), setRow(), sqr(), sqrt(), sub(), and sum().

Referenced by BSplineCoefficientGridFunction(), BSplineTensorCoefficientGridFunction(), sgpp::datadriven::DBMatOfflineGE::buildMatrix(), sgpp::datadriven::DBMatDMSDenseIChol::choleskyForwardSolve(), sgpp::datadriven::DBMatOfflineDenseIChol::choleskyModification(), sgpp::datadriven::DBMatOfflineChol::choleskyModification(), sgpp::base::PrecisionConverter::convertDataMatrixSPToDataMatrix(), sgpp::datadriven::DensityEstimator::corrcoef(), sgpp::datadriven::GaussianKDE::cov(), sgpp::datadriven::LearnerSGDE::cov(), sgpp::datadriven::Friedman1Generator::createData(), sgpp::datadriven::Friedman2Generator::createData(), sgpp::datadriven::Friedman3Generator::createData(), sgpp::datadriven::DBMatOfflineChol::decomposeMatrix(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::base::OperationQuadratureMC::doQuadrature(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), sgpp::datadriven::OperationDensitySamplingLinear::doSampling(), sgpp::datadriven::OperationDensityRejectionSamplingLinear::doSampling(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation(), sgpp::combigrid::FullGridPCESummationStrategy< V >::eval(), sgpp::base::HashGridStorage::getLevelForIntegral(), sgpp::base::HashGridStorage::getLevelIndexArraysForEval(), sgpp::base::HashGridStorage::getLevelIndexMaskArraysForModEval(), sgpp::datadriven::DBMatOfflineDenseIChol::ichol(), sgpp::datadriven::DBMatOfflineOrthoAdapt::invert_symmetric_tridiag(), sgpp::datadriven::OperationMultiEvalMPI::multSlave(), sgpp::pde::OperationMatrixLTwoDotExplicitLinear::OperationMatrixLTwoDotExplicitLinear(), sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear::OperationMatrixLTwoDotExplicitModifiedLinear(), sgpp::pde::OperationMatrixLTwoDotExplicitPeriodic::OperationMatrixLTwoDotExplicitPeriodic(), sgpp::base::DehierarchisationFundamentalSpline::operator()(), sgpp::base::HierarchisationFundamentalSpline::operator()(), sgpp::base::HierarchisationModFundamentalSpline::operator()(), sgpp::base::DehierarchisationModFundamentalSpline::operator()(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::padDataset(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::prepare(), sgpp::datadriven::ARFFTools::readARFFFromString(), sgpp::datadriven::CSVTools::readCSVSize(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::sherman_morrison_adapt(), and sgpp::datadriven::test_calculateROCcurve().

void sgpp::base::DataMatrix::setAll ( double  value)

Sets all entries of DataMatrix to value.

Parameters
valueNew value for all entries

Referenced by BSplineTensorCoefficientGridFunction(), sgpp::datadriven::DBMatOfflineGE::buildMatrix(), sgpp::datadriven::GaussianKDE::cov(), sgpp::datadriven::LearnerSGDE::cov(), sgpp::datadriven::AlgorithmAdaBoostBase::eval(), sgpp::base::OperationEvalGradientWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientWaveletBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientModWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalHessianModWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianWaveletBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalHessianModFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineClenshawCurtisNaive::evalHessian(), and sgpp::datadriven::BatchLearner::stringToDataMatrix().

void sgpp::base::DataMatrix::setColumn ( size_t  col,
const DataVector vec 
)

Sets a column of the DataMatrix to the values of a DataVector vec.

Parameters
colThe column which is to be overwritten
vecDataVector containing the data of the column

References sgpp::base::DataVector::get(), and sgpp::base::DataVector::getSize().

Referenced by sgpp::datadriven::DBMatOfflineChol::choleskyAddPoint(), sgpp::datadriven::DataBasedRefinementFunctor::computeH(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostRT(), sgpp::optimization::OperationMultipleHierarchisationModBspline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModLinear::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBspline::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWavelet::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationWaveletBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinear::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearBoundary::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationModBsplineClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationBsplineClenshawCurtis::doDehierarchisation(), sgpp::optimization::OperationMultipleHierarchisationLinearClenshawCurtis::doDehierarchisation(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::getMaxInversionError(), sgpp::optimization::optimizer::CMAES::optimize(), set(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::sherman_morrison_adapt(), sgpp::optimization::sle_solver::Eigen::solve(), sgpp::optimization::sle_solver::Armadillo::solve(), sgpp::optimization::sle_solver::UMFPACK::solve(), sgpp::optimization::sle_solver::SLESolver::solve(), and sgpp::pde::OperationMatrixLTwoDotExplicitLinearBoundary::~OperationMatrixLTwoDotExplicitLinearBoundary().

void sgpp::base::DataMatrix::setRow ( size_t  row,
const DataVector vec 
)

Sets a row of the DataMatrix to the values of a DataVector vec.

Parameters
rowThe row which is to be overwritten
vecDataVector containing the data of the row

References sgpp::base::DataVector::get(), and sgpp::base::DataVector::getSize().

Referenced by sgpp::datadriven::LearnerSGDEOnOffParallel::assembleNextBatchData(), sgpp::datadriven::DBMatOfflineChol::choleskyAddPoint(), sgpp::datadriven::OperationDensityRejectionSamplingLinear::doSampling(), sgpp::datadriven::OperationRosenblattTransformationKDE::doShuffledTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doShuffledTransformation(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation(), sgpp::datadriven::OperationRosenblattTransformationKDE::doTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doTransformation(), sgpp::base::OperationEvalGradient::evalGradient(), sgpp::base::OperationEvalHessian::evalHessian(), sgpp::base::ForwardSelectorRefinementIndicator::ForwardSelectorRefinementIndicator(), sgpp::base::EvalCuboidGenerator::getEvaluationCuboid(), sgpp::base::EvalCuboidGeneratorForStretching::getEvaluationCuboid(), sgpp::quadrature::SampleGenerator::getSamples(), sgpp::datadriven::OperationMultiEvalStreaming::multTranspose(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::multTranspose(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::padDataset(), sgpp::datadriven::LearnerSGDEOnOff::predict(), sgpp::datadriven::PrimalDualSVM::predictRaw(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLOpt< T >::prepare(), sgpp::datadriven::OperationMultiEvalStreamingModOCLMaskMultiPlatform< T >::prepare(), sgpp::datadriven::StreamingOCLMultiPlatform::OperationMultiEvalStreamingOCLMultiPlatform< T >::prepare(), sgpp::datadriven::LearnerSGD::pushToBatch(), sgpp::datadriven::CSVFileSampleProvider::readString(), sgpp::datadriven::ArffFileSampleProvider::readString(), set(), sgpp::datadriven::DBMatOnlineDEOrthoAdapt::sherman_morrison_adapt(), sgpp::datadriven::Scorer::splitSet(), and sgpp::datadriven::LearnerSGDEOnOff::train().

void sgpp::base::DataMatrix::sqr ( )

Squares all elements of the DataMatrix.

Referenced by set().

void sgpp::base::DataMatrix::sqrt ( )

Takes the square root of all elements of the DataMatrix.

Referenced by set().

void sgpp::base::DataMatrix::sub ( const DataMatrix matr)

Subtracts the values from another DataMatrix of the current values.

Modifies the current values.

Parameters
matrThe DataMatrix which is subtracted from the current values

Referenced by set().

double sgpp::base::DataMatrix::sum ( ) const

Returns the sum of all elements.

Returns
The sum of all elements

Referenced by set().

void sgpp::base::DataMatrix::toFile ( const std::string &  fileName) const

References python.test::f, and toString().

Referenced by getNcols().


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