SG++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sgpp::base::DataVector Class Reference

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

#include <DataVector.hpp>

Public Member Functions

void abs ()
 Sets all elements to their absolute value. More...
 
void accumulate (const DataVector &vec)
 
void add (const DataVector &vec)
 Adds the values from another DataVector to the current values. More...
 
void addSize (size_t inc_elems)
 Add add potentially new elements to the DataVector. More...
 
size_t append ()
 Appends a new element and returns index of it. More...
 
size_t append (double value)
 Appends a new element and returns index of new element. More...
 
void axpy (double a, DataVector &x)
 Adds a*x to current vector. More...
 
void componentwise_div (const DataVector &vec)
 Divides the current DataVector component-wise by another DataVector. More...
 
void componentwise_mult (const DataVector &vec)
 Multiplies the current DataVector component-wise with another DataVector. More...
 
void copyFrom (const DataVector &vec)
 Copies the data from another DataVector vec. More...
 
 DataVector ()
 Create a empty DataVector. More...
 
 DataVector (size_t size)
 Create a DataVector with size elements (uninitialized values). More...
 
 DataVector (size_t size, double value)
 Create a DataVector with size elements and initializes all elements with the same value. More...
 
 DataVector (const DataVector &vec)
 Create a new DataVector that is a copy of vec. More...
 
 DataVector (double *input, size_t size)
 Create a new DataVector from a double array with size elements. More...
 
 DataVector (std::vector< double > input)
 Create a new DataVector from a std::vector<double>. More...
 
 DataVector (std::vector< int > input)
 Create a new DataVector from a std::vector<int>. More...
 
 DataVector (DataVectorDefinition &DataVectorDef)
 Constructor that constructs a DataVector from a DataVectorDefinition structure. More...
 
double dotProduct (const DataVector &vec) const
 Returns the dot product of the two vectors. More...
 
double get (size_t i) const
 Returns the i-th element. More...
 
void getDataVectorDefinition (DataVectorDefinition &DataVectorDef)
 Fill DataVectorDefintion with data from the current DataVector. More...
 
size_t getInc () const
 Get the current number of elements by which the DataVector is extended, if append() or insert() is called and no unused rows are left. More...
 
size_t getNumberNonZero () const
 Determines the number of non-zero elements in the vector. More...
 
double * getPointer ()
 gets a pointer to the data array More...
 
const double * getPointer () const
 gets a const pointer to the data array More...
 
size_t getSize () const
 gets the elements stored in the vector More...
 
size_t getUnused () const
 Returns the number of unused elements. More...
 
void insert (size_t index, double value)
 Inserts a new element at the given index. More...
 
double l2Norm () const
 Returns the vector's \(l^2\)-norm, i.e., \(\sqrt{ \sum_i x_i^2 }\). More...
 
double max () const
 Returns the maximum over all entries. More...
 
double maxNorm () const
 calculates the vector's max norm More...
 
double min () const
 Returns the minimum over all entries. 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 normalize ()
 Normalizes vector entries to [0,1]. More...
 
void normalize (double border)
 Normalizes vector entries to [border, 1-border]. More...
 
DataVectoroperator= (const DataVector &vec)
 Copies the data from another, smaller DataVector vec. More...
 
double & operator[] (size_t i)
 Returns a reference to the i-th element. More...
 
const double & operator[] (size_t i) const
 Returns a constant reference to the i-th element. More...
 
void partitionClasses (double threshold)
 Partitions vector into two classes using a choosen border. More...
 
void resize (size_t size)
 Resizes the DataVector to size elements. More...
 
void resize (size_t size, double value)
 Resizes the DataVector to size elements. More...
 
void resizeZero (size_t nrows)
 Resizes the DataVector to size elements. More...
 
void restructure (std::vector< size_t > &remainingIndex)
 Resizes the DataVector by removing entries. More...
 
double RMSNorm () const
 Returns the vector's root mean square (RMS)-norm, i.e., \(\sqrt{ 1/N \sum_{i=1}^N x_i^2 }\). More...
 
void set (size_t i, double value)
 Sets the element at index i to value. More...
 
void setAll (double value)
 Sets all values of DataVector to value. More...
 
void setDataVectorDefinition (DataVectorDefinition &DataVectorDef)
 Set DataVectorDefintion for current DataVector. More...
 
void setInc (size_t inc_elems)
 Sets the current number of elements by which the DataVector is extended, if append() or insert() is called and no unused elements are left. More...
 
void sqr ()
 Squares all elements of the DataVector. More...
 
void sqrt ()
 Takes the square root of all elements of the DataVector. More...
 
void sub (const DataVector &vec)
 Subtracts the values from another DataVector 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 DataVector into a string. More...
 
std::string toString () const
 Returns a description of the DataVector as a string. More...
 
virtual ~DataVector ()
 Destructor. More...
 

Static Public Member Functions

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

Detailed Description

A class to store one-dimensional data.

Typically, an object of type DataVector will contain an array of (hierarchical) coefficients (or surplusses), or the coordinates of a data point at which a sparse grid function should be evaluated.

Constructor & Destructor Documentation

sgpp::base::DataVector::DataVector ( )

Create a empty DataVector.

sgpp::base::DataVector::DataVector ( size_t  size)
explicit

Create a DataVector with size elements (uninitialized values).

Parameters
sizeNumber of elements
sgpp::base::DataVector::DataVector ( size_t  size,
double  value 
)

Create a DataVector with size elements and initializes all elements with the same value.

Parameters
sizeNumber of elements
valueValue for all entries

References setAll().

sgpp::base::DataVector::DataVector ( const DataVector vec)

Create a new DataVector that is a copy of vec.

Parameters
vecReference to another instance of DataVector
sgpp::base::DataVector::DataVector ( double *  input,
size_t  size 
)

Create a new DataVector from a double array with size elements.

Parameters
inputdouble array that contains the data
sizenumber of elements
sgpp::base::DataVector::DataVector ( std::vector< double >  input)
explicit

Create a new DataVector from a std::vector<double>.

Parameters
inputstd::vector<double> that contains the data
sgpp::base::DataVector::DataVector ( std::vector< int >  input)
explicit

Create a new DataVector from a std::vector<int>.

Parameters
inputstd::vector<int> that contains the data
sgpp::base::DataVector::DataVector ( DataVectorDefinition DataVectorDef)
explicit

Constructor that constructs a DataVector from a DataVectorDefinition structure.

Parameters
DataVectorDefreference to a DataVectorDefinition structure

References setDataVectorDefinition().

sgpp::base::DataVector::~DataVector ( )
virtual

Destructor.

Member Function Documentation

void sgpp::base::DataVector::abs ( )

Sets all elements to their absolute value.

Referenced by sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2().

void sgpp::base::DataVector::accumulate ( const DataVector vec)
void sgpp::base::DataVector::add ( const DataVector vec)

Adds the values from another DataVector to the current values.

Modifies the current values.

Parameters
vecThe DataVector which is added to the current values

Referenced by addSize(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyMassMatrixComplete(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyMassMatrixInner(), sgpp::datadriven::BatchLearner::applyWeight(), sgpp::base::OperationEvalGradientWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientModWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientWaveletBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineClenshawCurtisNaive::evalGradient(), 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(), sgpp::pde::StdUpDown::mult(), sgpp::pde::UpDownFourOpDims::mult(), sgpp::pde::UpDownOneOpDim::mult(), sgpp::pde::UpDownTwoOpDims::mult(), sgpp::pde::OperationParabolicPDESolverSystemFreeBoundaries::mult(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::mult(), sgpp::pde::OperationParabolicPDESolverSystemDirichlet::mult(), sgpp::base::AlgorithmMultipleEvaluation< BASIS >::mult_transpose(), sgpp::base::AlgorithmDGEMV< BASIS >::mult_transposed(), sgpp::pde::StdUpDown::multParallelBuildingBlock(), sgpp::pde::UpDownOneOpDim::multParallelBuildingBlock(), sgpp::pde::UpDownTwoOpDims::multParallelBuildingBlock(), sgpp::optimization::optimizer::CMAES::optimize(), sgpp::solver::ConjugateGradients::solve(), sgpp::solver::BiCGStab::solve(), sgpp::pde::UpDownOneOpDimWithShadow::specialOP(), sgpp::pde::UpDownOneOpDim::specialOP(), sgpp::pde::UpDownTwoOpDims::specialOpOne(), sgpp::pde::UpDownTwoOpDims::specialOpOneAndOpTwo(), sgpp::pde::UpDownTwoOpDims::specialOpTwo(), sgpp::pde::UpDownFourOpDims::specialOpX(), sgpp::pde::UpDownOneOpDimWithShadow::updown(), sgpp::pde::StdUpDown::updown(), sgpp::pde::UpDownOneOpDim::updown(), and sgpp::pde::UpDownTwoOpDims::updown().

void sgpp::base::DataVector::addSize ( size_t  inc_elems)

Add add potentially new elements to the DataVector.

The size remains unchanged Reserves memory for potentially inc_elems new elements; the actual number of elements remains unchanged. Corresponds to a resize to size+inc_elems new elements while leaving the current vector's size unchanged.

Parameters
inc_elemsNumber of additional elements for which storage is to be reserved.

References add().

Referenced by append().

size_t sgpp::base::DataVector::append ( double  value)

Appends a new element and returns index of new element.

If the new element does not fit into the reserved memory, reserves memory for getInc() additional elements.

Parameters
valueValue of new element
Returns
Index of new element

References append().

void sgpp::base::DataVector::componentwise_div ( const DataVector vec)

Divides the current DataVector component-wise by another DataVector.

Modifies the current values. Performs

for i from 1 to this.getSize()
this[i] /= vec[i]

Note: No check for division by zero!

Parameters
vecthe DataVector which the current DataVector is divided by
void sgpp::base::DataVector::componentwise_mult ( const DataVector vec)

Multiplies the current DataVector component-wise with another DataVector.

Modifies the current values. Performs

for i from 1 to this.getSize()
this[i] *= vec[i]
Parameters
vecthe DataVector which is multiplied to current DataVector

Referenced by sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::DMWeightMatrix::generateb(), l2Norm(), sgpp::datadriven::OperationRegularizationDiagonal::mult(), and sgpp::datadriven::LearnerBase::train().

void sgpp::base::DataVector::copyFrom ( const DataVector vec)

Copies the data from another DataVector vec.

Disregards the number of entries set for the two vectors, i.e., just copies the data entry by entry. If the size matches, the current DataVector is an exact copy of vec. If not, as many elements as possible are copied, and everything else is left untouched.

Parameters
vecThe source DataVector containing the data

Referenced by sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostRT(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), sgpp::base::OperationEvalModLinear::eval(), sgpp::datadriven::OperationRegularizationDiagonal::mult(), and sgpp::datadriven::BatchLearner::stringToDataVector().

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

References f, and fromString().

DataVector sgpp::base::DataVector::fromString ( const std::string &  serializedVector)
static

References append().

Referenced by fromFile().

double sgpp::base::DataVector::get ( size_t  i) const
inline

Returns the i-th element.

Parameters
iposition of the element
Returns
data[i]

Referenced by sgpp::base::DirichletUpdateVector::applyDirichletConditions(), sgpp::base::DirichletGridConverter::buildInnerGridWithCoefs(), sgpp::base::DirichletGridConverter::calcInnerCoefs(), sgpp::datadriven::CrossValidation::calculateScore(), sgpp::base::PrecisionConverter::convertDataVectorToDataVectorSP(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostRT(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::base::OperationQuadratureLinear::doQuadrature(), sgpp::base::OperationSecondMomentLinear::doQuadrature(), sgpp::base::OperationQuadratureLinearBoundary::doQuadrature(), sgpp::base::OperationFirstMomentLinear::doQuadrature(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), sgpp::datadriven::AlgorithmAdaBoostBase::doRefinement(), sgpp::datadriven::OperationDensitySamplingLinear::doSampling(), sgpp::datadriven::OperationDensitySamplingLinear::doSampling_in_next_dim(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doShuffledTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation_in_next_dim(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation_in_next_dim(), sgpp::base::DataMatrix::expand(), sgpp::datadriven::LearnerBase::getAccuracy(), sgpp::datadriven::AlgorithmAdaBoostBase::getAccuracy(), sgpp::datadriven::AlgorithmAdaBoostBase::getAccuracyBL(), sgpp::datadriven::LearnerBase::getCassificatorQuality(), sgpp::datadriven::AlgorithmAdaBoostBase::getMaxGridPoint(), sgpp::datadriven::AlgorithmAdaBoostBase::getMeanGridPoint(), sgpp::base::ClenshawCurtisTable::getPoint(), sgpp::datadriven::AlgorithmAdaBoostBase::getROC(), sgpp::datadriven::AlgorithmAdaBoostBase::getSumGridPoint(), sgpp::datadriven::DataBasedRefinementFunctor::isWithinSupport(), sgpp::datadriven::MetaLearner::learnAndTestString(), sgpp::pde::UpDownOneOpDim::mult(), sgpp::base::DirichletUpdateVector::multiply(), sgpp::base::DirichletUpdateVector::multiplyBoundary(), sgpp::base::DirichletUpdateVector::multiplyBoundaryVector(), sgpp::pde::UpDownOneOpDim::multParallelBuildingBlock(), sgpp::base::DehierarchisationFundamentalSpline::operator()(), sgpp::base::DehierarchisationModFundamentalSpline::operator()(), sgpp::pde::DowndPhidPhiBBIterativeLinearBoundary::operator()(), sgpp::pde::DowndPhidPhiBBIterativeLinearStretchedBoundary::operator()(), sgpp::pde::UpdPhidPhiBBIterativeLinearStretchedBoundary::operator()(), sgpp::base::PredictiveRefinementIndicator::operator()(), sgpp::base::DirichletGridConverter::rebuildInnerGridWithCoefs(), sgpp::base::DataMatrix::setColumn(), sgpp::base::DataMatrix::setRow(), sgpp::pde::HeatEquationSolver::storeInnerRHS(), sgpp::pde::PoissonEquationSolver::storeInnerRHS(), sgpp::pde::HeatEquationSolver::storeInnerSolution(), sgpp::pde::PoissonEquationSolver::storeInnerSolution(), sgpp::datadriven::test_calculateROCcurve(), sgpp::datadriven::BatchLearner::trainBatch(), and sgpp::base::DirichletGridConverter::updateBoundaryCoefs().

void sgpp::base::DataVector::getDataVectorDefinition ( DataVectorDefinition DataVectorDef)
size_t sgpp::base::DataVector::getInc ( ) const
inline

Get the current number of elements by which the DataVector is extended, if append() or insert() is called and no unused rows are left.

Returns
Increment
size_t sgpp::base::DataVector::getNumberNonZero ( ) const

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

Returns
The number of non-zero elements
const double * sgpp::base::DataVector::getPointer ( ) const

gets a const pointer to the data array

Returns
const pointer to the data array
size_t sgpp::base::DataVector::getSize ( ) const
inline

gets the elements stored in the vector

Returns
elements stored in the vector

Referenced by sgpp::base::DataMatrix::addReduce(), sgpp::datadriven::AlgorithmAdaBoostIdentity::alphaSolver(), sgpp::base::DataMatrix::appendCol(), sgpp::base::DataMatrix::appendRow(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyLOperatorComplete(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyLOperatorInner(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyMassMatrixComplete(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyMassMatrixInner(), sgpp::datadriven::BatchLearner::applyWeight(), python.uq.uq_setting.UQSetting.UQSetting::convert(), sgpp::base::PrecisionConverter::convertDataVectorSPToDataVector(), sgpp::base::PrecisionConverter::convertDataVectorToDataVectorSP(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostRT(), doAllRefinements(), sgpp::datadriven::OperationDensityConditionalLinear::doConditional(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::base::OperationQuadraturePolyBoundary::doQuadrature(), sgpp::base::OperationQuadraturePoly::doQuadrature(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), sgpp::datadriven::OperationDensitySamplingLinear::doSampling(), sgpp::datadriven::OperationDensitySamplingLinear::doSampling_in_next_dim(), sgpp::datadriven::OperationDensitySamplingLinear::doSampling_start_dimX(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doTransformation1D(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation_in_next_dim(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation_in_next_dim(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation_start_dimX(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation_start_dimX(), sgpp::base::OperationEvalModLinear::eval(), sgpp::base::OperationEvalGradient::evalGradient(), sgpp::base::OperationEvalHessian::evalHessian(), sgpp::pde::PDESolver::evaluateCuboid(), sgpp::base::DataMatrix::expand(), sgpp::base::DataMatrix::fromString(), sgpp::optimization::IterativeGridGeneratorRitterNovak::generate(), sgpp::pde::OperationParabolicPDESolverSystemFreeBoundaries::generateRHS(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::generateRHS(), sgpp::pde::OperationParabolicPDESolverSystemDirichlet::generateRHS(), sgpp::datadriven::LearnerBase::getAccuracy(), sgpp::datadriven::AlgorithmAdaBoostBase::getAccuracy(), sgpp::datadriven::AlgorithmAdaBoostBase::getAccuracyBL(), sgpp::datadriven::GaussianKDE::getBandwidths(), sgpp::datadriven::LearnerBase::getCassificatorQuality(), sgpp::base::DataMatrix::getColumn(), sgpp::optimization::RandomNumberGenerator::getGaussianRV(), python.uq.learner.Interpolant.Interpolant::getMSE(), sgpp::datadriven::AlgorithmAdaBoostBase::getROC(), sgpp::base::DataMatrix::getRow(), sgpp::quadrature::NaiveSampleGenerator::getSample(), sgpp::quadrature::StratifiedSampleGenerator::getSample(), sgpp::optimization::RandomNumberGenerator::getUniformRV(), sgpp::datadriven::DataBasedRefinementFunctor::isWithinSupport(), sgpp::optimization::optimizer::lineSearchArmijo(), sgpp::solver::StepsizeControl::maxNorm(), sgpp::pde::OperationMatrixLTwoDotPeriodic::mult(), sgpp::pde::StdUpDown::mult(), sgpp::pde::UpDownOneOpDimWithShadow::mult(), sgpp::datadriven::OperationMultiEvalStreaming::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitPeriodic::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitLinear::mult(), sgpp::pde::UpDownFourOpDims::mult(), sgpp::pde::OperationMatrixLTwoDotExplicitLinearBoundary::mult(), sgpp::datadriven::DMSystemMatrix::mult(), sgpp::pde::UpDownOneOpDim::mult(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::mult(), sgpp::pde::UpDownOneOpDimEnhanced::mult(), sgpp::datadriven::DMWeightMatrix::mult(), sgpp::datadriven::DensitySystemMatrix::mult(), sgpp::pde::UpDownTwoOpDims::mult(), sgpp::pde::OperationParabolicPDESolverSystemFreeBoundaries::mult(), sgpp::datadriven::PiecewiseConstantSmoothedRegressionSystemMatrix::mult(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::mult(), sgpp::datadriven::AbstractOperationMultipleEvalSubspace::mult(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::mult(), sgpp::pde::OperationParabolicPDESolverSystemDirichlet::mult(), sgpp::base::AlgorithmMultipleEvaluation< BASIS >::mult(), sgpp::base::AlgorithmDGEMV< BASIS >::mult(), sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::mult(), sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::mult(), sgpp::datadriven::StreamingOCLMultiPlatform::OperationMultiEvalStreamingOCLMultiPlatform< T >::mult(), sgpp::datadriven::OperationMultiEvalStreamingModOCLMaskMultiPlatform< T >::mult(), sgpp::datadriven::OperationMultiEvalStreamingModOCLOpt< T >::mult(), sgpp::base::DataMatrix::mult(), sgpp::base::AlgorithmMultipleEvaluation< BASIS >::mult_transpose(), sgpp::base::AlgorithmDGEMV< BASIS >::mult_transposed(), sgpp::pde::StdUpDown::multParallelBuildingBlock(), sgpp::pde::UpDownOneOpDimEnhanced::multParallelBuildingBlock(), sgpp::pde::UpDownOneOpDim::multParallelBuildingBlock(), sgpp::pde::UpDownTwoOpDims::multParallelBuildingBlock(), sgpp::datadriven::AbstractOperationMultipleEvalSubspace::multTranspose(), sgpp::datadriven::OperationMultiEvalStreaming::multTranspose(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::multTranspose(), sgpp::datadriven::OperationMultiEvalStreamingBSplineOCL< T >::multTranspose(), sgpp::datadriven::OperationMultiEvalStreamingModOCLUnified< T >::multTranspose(), sgpp::datadriven::OperationMultiEvalStreamingModOCLFastMultiPlatform< T >::multTranspose(), sgpp::datadriven::OperationMultiEvalStreamingModOCLOpt< T >::multTranspose(), sgpp::datadriven::StreamingOCLMultiPlatform::OperationMultiEvalStreamingOCLMultiPlatform< T >::multTranspose(), sgpp::datadriven::OperationMultiEvalStreamingModOCLMaskMultiPlatform< T >::multTranspose(), sgpp::solver::VarTimestep::predictor(), sgpp::pde::PDESolver::refineInitialGridSurplusSubDomain(), sgpp::pde::PDESolver::refineInitialGridSurplusToMaxLevelSubDomain(), RMSNorm(), python.uq.uq_setting.UQSetting.UQSetting::runSamples(), python.uq.uq_setting.UQSetting.UQSetting::runSamples_withoutDistribution(), sgpp::base::DataMatrix::setColumn(), sgpp::base::DataMatrix::setRow(), sgpp::optimization::sle_solver::BiCGStab::setStartingPoint(), sgpp::solver::ConjugateGradients::solve(), sgpp::optimization::sle_solver::Armadillo::solve(), sgpp::optimization::sle_solver::Eigen::solve(), sgpp::optimization::sle_solver::GaussianElimination::solve(), sgpp::optimization::sle_solver::UMFPACK::solve(), sgpp::solver::BiCGStab::solve(), sgpp::optimization::sle_solver::Auto::solve(), sgpp::optimization::sle_solver::BiCGStab::solve(), sgpp::solver::StepsizeControl::solve(), sgpp::pde::OperationLaplaceLinearStretched::specialOP(), sgpp::pde::OperationLaplaceLinear::specialOP(), sgpp::pde::UpDownOneOpDimWithShadow::specialOP(), sgpp::pde::UpDownOneOpDim::specialOP(), sgpp::pde::UpDownTwoOpDims::specialOpOne(), sgpp::pde::UpDownTwoOpDims::specialOpOneAndOpTwo(), sgpp::pde::UpDownTwoOpDims::specialOpTwo(), sgpp::pde::UpDownFourOpDims::specialOpX(), sgpp::pde::HeatEquationSolver::storeInnerRHS(), sgpp::pde::PoissonEquationSolver::storeInnerRHS(), sgpp::pde::HeatEquationSolver::storeInnerSolution(), sgpp::pde::PoissonEquationSolver::storeInnerSolution(), sgpp::datadriven::BatchLearner::stringToDataVector(), sgpp::datadriven::test_calculateROCcurve(), sgpp::datadriven::test_dataset_mse(), sgpp::datadriven::test_datasetWithCharacteristicNumber(), sgpp::datadriven::LearnerBase::train(), sgpp::datadriven::LearnerSGDE::train(), sgpp::datadriven::BatchLearner::trainBatch(), sgpp::pde::UpDownOneOpDimWithShadow::updown(), sgpp::pde::StdUpDown::updown(), sgpp::pde::UpDownOneOpDim::updown(), sgpp::pde::UpDownTwoOpDims::updown(), verifyLearned(), sgpp::optimization::file_io::writeGrid(), and sgpp::optimization::file_io::writeVector().

size_t sgpp::base::DataVector::getUnused ( ) const
inline

Returns the number of unused elements.

Returns
number of unused elements
void sgpp::base::DataVector::insert ( size_t  index,
double  value 
)

Inserts a new element at the given index.

If the new element does not fit into the reserved memory, reserves memory for getInc() additional elements.

Parameters
indexIndex of new element
valueValue of new element

References append().

Referenced by sgpp::optimization::IterativeGridGeneratorRitterNovak::generate().

double sgpp::base::DataVector::maxNorm ( ) const
double sgpp::base::DataVector::min ( ) const

Returns the minimum over all entries.

Returns
Minimal value

Referenced by normalize(), and sgpp::datadriven::LearnerSGDE::optimizeLambdaCV().

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

Determines minimum and maximum over all entries.

Parameters
minReference variable for the minimum
maxReference variable for the maximum

Referenced by normalize().

void sgpp::base::DataVector::normalize ( )

Normalizes vector entries to [0,1].

void sgpp::base::DataVector::normalize ( double  border)

Normalizes vector entries to [border, 1-border].

Parameters
borderwidth of border

References max(), min(), and minmax().

DataVector & sgpp::base::DataVector::operator= ( const DataVector vec)

Copies the data from another, smaller DataVector vec.

Has no effect, if vec has more elements than the current vector. If it has the same or smaller size, the first vec.size() elements of the current vector are overwritten.

Parameters
vecthe DataVector containing the data
Returns
*this Copies the data from another DataVector. Dimensions have to match.
Parameters
vecthe DataVector containing the data
double& sgpp::base::DataVector::operator[] ( size_t  i)
inline

Returns a reference to the i-th element.

Parameters
iposition of the element
Returns
data[i]
const double& sgpp::base::DataVector::operator[] ( size_t  i) const
inline

Returns a constant reference to the i-th element.

Parameters
iposition of the element
Returns
data[i]
void sgpp::base::DataVector::partitionClasses ( double  threshold)

Partitions vector into two classes using a choosen border.

Parameters
thresholdvalue of the border
void sgpp::base::DataVector::resize ( size_t  size)

Resizes the DataVector to size elements.

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

Parameters
sizeNew number of elements of the DataVector

Referenced by sgpp::datadriven::Friedman1Generator::createData(), sgpp::datadriven::Friedman2Generator::createData(), sgpp::datadriven::Friedman3Generator::createData(), doAllRefinements(), sgpp::datadriven::OperationDensityConditionalLinear::doConditional(), 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::OperationDensityMarginalizeLinear::doMarginalize(), sgpp::base::OperationEvalModPolyNaive::eval(), sgpp::base::OperationEvalPolyBoundaryNaive::eval(), sgpp::base::OperationEvalPolyNaive::eval(), sgpp::base::OperationEvalLinearNaive::eval(), sgpp::base::OperationEvalModLinearNaive::eval(), sgpp::base::OperationEvalLinearBoundaryNaive::eval(), sgpp::base::OperationEvalLinearClenshawCurtisNaive::eval(), sgpp::base::OperationEval::eval(), sgpp::base::OperationEvalModWaveletNaive::eval(), sgpp::base::OperationEvalWaveletBoundaryNaive::eval(), sgpp::base::OperationEvalWaveletNaive::eval(), sgpp::base::OperationEvalBsplineBoundaryNaive::eval(), sgpp::base::OperationEvalFundamentalSplineNaive::eval(), sgpp::base::OperationEvalModBsplineNaive::eval(), sgpp::base::OperationEvalModFundamentalSplineNaive::eval(), sgpp::base::OperationEvalBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalModBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalBsplineNaive::eval(), sgpp::base::OperationEvalGradientWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientModWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientWaveletBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientModFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradient::evalGradient(), sgpp::base::OperationEvalGradientBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineClenshawCurtisNaive::evalGradient(), sgpp::base::OperationEvalHessianModWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianWaveletNaive::evalHessian(), sgpp::base::OperationEvalHessianWaveletBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineNaive::evalHessian(), sgpp::base::OperationEvalHessian::evalHessian(), sgpp::base::OperationEvalHessianBsplineBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalHessianFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModFundamentalSplineNaive::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::DataMatrix::fromString(), sgpp::optimization::IterativeGridGeneratorSOO::generate(), sgpp::optimization::IterativeGridGeneratorLinearSurplus::generate(), sgpp::optimization::IterativeGridGeneratorRitterNovak::generate(), sgpp::datadriven::GaussianKDE::getBandwidths(), sgpp::datadriven::GaussianKDE::getConditionalizationFactor(), sgpp::base::HashGridStorage::getCoordinates(), sgpp::optimization::test_problems::Himmelblau::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Michalewicz::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Beale::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Mladineo::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::SHCB::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::AbsoluteValue::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Branin::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Sphere::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::GoldsteinPrice::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Schwefel::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Ackley::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Rastrigin::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::IncreasingPower::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Perm::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Rosenbrock::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::BubbleWrap::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::HoelderTable::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::EasomYang::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Griewank::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Eggholder::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Hartman3::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Hartman6::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::TremblingParabola::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::G11::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Soland::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::G12::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Simionescu::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::G06::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Floudas::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::G08::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::G13::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::G03::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::G09::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::G10::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::G05::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::G04::getOptimalPointUndisplaced(), sgpp::base::HashGridPoint::getStandardCoordinates(), sgpp::datadriven::GaussianKDE::initialize(), sgpp::optimization::SLE::matrixVectorMultiplication(), sgpp::datadriven::OperationMultiEvalStreaming::mult(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::mult(), sgpp::datadriven::AbstractOperationMultipleEvalSubspace::mult(), sgpp::datadriven::OperationMultiEvalMPI::multSlave(), sgpp::datadriven::AbstractOperationMultipleEvalSubspace::multTranspose(), sgpp::datadriven::OperationMultiEvalStreaming::multTranspose(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::multTranspose(), sgpp::datadriven::LearnerLeastSquaresIdentity::multTranspose(), sgpp::datadriven::LearnerBase::multTranspose(), sgpp::datadriven::Dataset::operator=(), sgpp::optimization::optimizer::CMAES::optimize(), sgpp::optimization::optimizer::Rprop::optimize(), sgpp::optimization::optimizer::AdaptiveGradientDescent::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::GaussianKDE::pdf(), sgpp::datadriven::LearnerLeastSquaresIdentity::predict(), sgpp::datadriven::LearnerBase::predict(), sgpp::solver::VarTimestep::predictor(), sgpp::optimization::file_io::readGrid(), sgpp::optimization::file_io::readVector(), sgpp::pde::PDESolver::refineInitialGridSurplus(), sgpp::pde::PDESolver::refineInitialGridSurplusSubDomain(), sgpp::pde::PDESolver::refineInitialGridSurplusToMaxLevel(), sgpp::pde::PDESolver::refineInitialGridSurplusToMaxLevelSubDomain(), sgpp::optimization::sle_solver::BiCGStab::setStartingPoint(), sgpp::optimization::sle_solver::GaussianElimination::solve(), sgpp::optimization::sle_solver::Armadillo::solve(), sgpp::optimization::sle_solver::Eigen::solve(), sgpp::optimization::sle_solver::Gmmpp::solve(), sgpp::optimization::sle_solver::UMFPACK::solve(), sgpp::optimization::sle_solver::Auto::solve(), sgpp::optimization::sle_solver::BiCGStab::solve(), sgpp::solver::StepsizeControl::solve(), sgpp::datadriven::BatchLearner::stringToDataMatrix(), sgpp::datadriven::BatchLearner::stringToDataVector(), sgpp::datadriven::test_datasetWithCharacteristicNumber(), and sgpp::datadriven::LearnerSGDE::train().

void sgpp::base::DataVector::resize ( size_t  size,
double  value 
)

Resizes the DataVector to size elements.

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

Parameters
sizeNew number of rows of the DataVector
valueInitial value for the new entries
void sgpp::base::DataVector::restructure ( std::vector< size_t > &  remainingIndex)

Resizes the DataVector by removing entries.

Throws an exception if boundaries a violated.

Parameters
remainingIndexvector that contains the remaining indices of the DataVector

Referenced by sgpp::base::HashCoarsening::free_coarsen_NFirstOnly().

double sgpp::base::DataVector::RMSNorm ( ) const

Returns the vector's root mean square (RMS)-norm, i.e., \(\sqrt{ 1/N \sum_{i=1}^N x_i^2 }\).

If the vector's entries correspond to function values on a full grid, this is the discrete \(L^2\)-norm of the corresponding function.

Returns
The vector's root mean square-norm.

References getSize(), sqr(), and sum().

void sgpp::base::DataVector::set ( size_t  i,
double  value 
)

Sets the element at index i to value.

Parameters
iIndex
valueNew value for element

Referenced by sgpp::base::DataMatrix::addReduce(), sgpp::base::DirichletUpdateVector::applyDirichletConditions(), sgpp::base::DirichletGridConverter::calcInnerCoefs(), sgpp::datadriven::AlgorithmAdaBoostBase::classif(), sgpp::base::PrecisionConverter::convertDataVectorSPToDataVector(), sgpp::datadriven::Friedman1Generator::createData(), sgpp::datadriven::Friedman2Generator::createData(), sgpp::datadriven::Friedman3Generator::createData(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostRT(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), sgpp::datadriven::AlgorithmAdaBoostBase::doRefinement(), sgpp::datadriven::OperationDensitySamplingLinear::doSampling(), sgpp::datadriven::OperationDensitySamplingLinear::doSampling_in_next_dim(), sgpp::datadriven::OperationRosenblattTransformationLinear::doTransformation_in_next_dim(), sgpp::datadriven::OperationInverseRosenblattTransformationLinear::doTransformation_in_next_dim(), sgpp::base::HashGridPoint::getStandardCoordinates(), sgpp::datadriven::OperationMultipleEvalSubspaceSimple::multImpl(), sgpp::datadriven::OperationMultipleEvalSubspaceCombined::multImpl(), sgpp::base::DirichletUpdateVector::multiply(), sgpp::base::DirichletUpdateVector::multiplyBoundary(), sgpp::base::DirichletUpdateVector::multiplyBoundaryVector(), sgpp::base::DirichletUpdateVector::setBoundariesToZero(), sgpp::base::DirichletUpdateVector::setInnerPointsToZero(), sgpp::datadriven::BatchLearner::stringToDataVector(), sgpp::datadriven::test_datasetWithCharacteristicNumber(), and sgpp::base::DirichletGridConverter::updateBoundaryCoefs().

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

Sets all values of DataVector to value.

Parameters
valueNew value for all entries

Referenced by sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyLOperatorComplete(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyLOperatorInner(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyMassMatrixComplete(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::applyMassMatrixInner(), sgpp::datadriven::BatchLearner::applyWeight(), DataVector(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostR2(), sgpp::datadriven::AlgorithmAdaBoostBase::doAdaBoostRT(), sgpp::datadriven::OperationDensityConditionalLinear::doConditional(), sgpp::datadriven::AlgorithmAdaBoostBase::doDiscreteAdaBoost(), sgpp::datadriven::OperationDensityMarginalizeLinear::doMarginalize(), sgpp::datadriven::AlgorithmAdaBoostBase::doRealAdaBoost(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doShuffledTransformation(), sgpp::datadriven::OperationInverseRosenblattTransformationKDE::doTransformation(), sgpp::pde::OperationLaplaceModLinear::down(), sgpp::pde::OperationLaplaceModLinear::downOpDim(), sgpp::base::OperationEvalModPolyNaive::eval(), sgpp::base::OperationEvalPolyNaive::eval(), sgpp::base::OperationEvalPolyBoundaryNaive::eval(), sgpp::base::OperationEvalLinearClenshawCurtisNaive::eval(), sgpp::base::OperationEvalLinearNaive::eval(), sgpp::base::OperationEvalLinearBoundaryNaive::eval(), sgpp::base::OperationEvalModLinearNaive::eval(), sgpp::base::OperationEvalModWaveletNaive::eval(), sgpp::base::OperationEvalWaveletBoundaryNaive::eval(), sgpp::base::OperationEvalWaveletNaive::eval(), sgpp::base::OperationEvalModBsplineNaive::eval(), sgpp::base::OperationEvalModFundamentalSplineNaive::eval(), sgpp::base::OperationEvalBsplineBoundaryNaive::eval(), sgpp::base::OperationEvalBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalFundamentalSplineNaive::eval(), sgpp::base::OperationEvalModBsplineClenshawCurtisNaive::eval(), sgpp::base::OperationEvalBsplineNaive::eval(), sgpp::optimization::InterpolantVectorFunctionGradient::eval(), sgpp::optimization::InterpolantVectorFunctionHessian::eval(), sgpp::optimization::InterpolantVectorFunction::eval(), sgpp::datadriven::AlgorithmAdaBoostBase::eval(), sgpp::base::OperationEvalGradientWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientModWaveletNaive::evalGradient(), sgpp::base::OperationEvalGradientWaveletBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineNaive::evalGradient(), sgpp::base::OperationEvalGradientBsplineBoundaryNaive::evalGradient(), sgpp::base::OperationEvalGradientFundamentalSplineNaive::evalGradient(), sgpp::base::OperationEvalGradientModBsplineNaive::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::OperationEvalHessianModFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineBoundaryNaive::evalHessian(), sgpp::base::OperationEvalHessianBsplineClenshawCurtisNaive::evalHessian(), sgpp::base::OperationEvalHessianFundamentalSplineNaive::evalHessian(), sgpp::base::OperationEvalHessianModBsplineClenshawCurtisNaive::evalHessian(), 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::optimization::IterativeGridGeneratorLinearSurplus::generate(), sgpp::optimization::IterativeGridGeneratorRitterNovak::generate(), sgpp::datadriven::DensitySystemMatrix::generateb(), sgpp::pde::OperationParabolicPDESolverSystemFreeBoundaries::generateRHS(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::generateRHS(), sgpp::pde::OperationParabolicPDESolverSystemDirichlet::generateRHS(), sgpp::pde::OperationEllipticPDESolverSystemDirichlet::getGridCoefficientsForCG(), sgpp::optimization::test_problems::Sphere::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Schwefel::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::BubbleWrap::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Rosenbrock::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Ackley::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Rastrigin::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::Griewank::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::EasomYang::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::TremblingParabola::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::G12::getOptimalPointUndisplaced(), sgpp::optimization::test_problems::G03::getOptimalPointUndisplaced(), sgpp::datadriven::GaussianKDE::initialize(), main(), sgpp::optimization::SLE::matrixVectorMultiplication(), sgpp::pde::StdUpDown::mult(), sgpp::pde::UpDownOneOpDimWithShadow::mult(), sgpp::datadriven::OperationMultiEvalStreaming::mult(), sgpp::pde::UpDownFourOpDims::mult(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::mult(), sgpp::pde::UpDownOneOpDim::mult(), sgpp::pde::UpDownOneOpDimEnhanced::mult(), sgpp::datadriven::DensitySystemMatrix::mult(), sgpp::pde::UpDownTwoOpDims::mult(), sgpp::pde::OperationParabolicPDESolverSystemFreeBoundaries::mult(), sgpp::datadriven::PiecewiseConstantSmoothedRegressionSystemMatrix::mult(), sgpp::pde::HeatEquationParabolicPDESolverSystemParallelOMP::mult(), sgpp::datadriven::AbstractOperationMultipleEvalSubspace::mult(), sgpp::pde::OperationParabolicPDESolverSystemDirichlet::mult(), sgpp::base::AlgorithmMultipleEvaluation< BASIS >::mult(), sgpp::base::AlgorithmDGEMV< BASIS >::mult(), sgpp::base::AlgorithmMultipleEvaluation< BASIS >::mult_transpose(), sgpp::base::AlgorithmDGEMV< BASIS >::mult_transposed(), sgpp::pde::StdUpDown::multParallelBuildingBlock(), sgpp::pde::UpDownOneOpDimEnhanced::multParallelBuildingBlock(), sgpp::pde::UpDownOneOpDim::multParallelBuildingBlock(), sgpp::pde::UpDownTwoOpDims::multParallelBuildingBlock(), sgpp::datadriven::AbstractOperationMultipleEvalSubspace::multTranspose(), sgpp::datadriven::OperationMultiEvalStreaming::multTranspose(), sgpp::datadriven::OperationMultiEvalModMaskStreaming::multTranspose(), sgpp::pde::UpdPhidPhiBBIterativeLinearStretchedBoundary::operator()(), sgpp::pde::DowndPhidPhiBBIterativeLinearStretchedBoundary::operator()(), sgpp::pde::UpdPhidPhiBBIterativeLinearBoundary::operator()(), sgpp::pde::DowndPhidPhiBBIterativeLinearBoundary::operator()(), sgpp::pde::DowndPhidPhiBBIterativeLinear::operator()(), sgpp::pde::DowndPhidPhiBBIterativeLinearStretched::operator()(), sgpp::base::DehierarchisationPoly::operator()(), sgpp::base::DehierarchisationPolyBoundary::operator()(), sgpp::base::HierarchisationPolyBoundary::operator()(), sgpp::base::DehierarchisationModPoly::operator()(), sgpp::base::HierarchisationModPoly::operator()(), sgpp::base::HierarchisationPoly::operator()(), sgpp::datadriven::GaussianKDE::pdf(), sgpp::datadriven::BatchLearner::predict(), sgpp::datadriven::BatchLearner::processBatch(), sgpp::solver::ConjugateGradients::solve(), sgpp::solver::BiCGStab::solve(), sgpp::optimization::sle_solver::BiCGStab::solve(), sgpp::pde::UpDownOneOpDimWithShadow::specialOP(), sgpp::datadriven::BatchLearner::stringToDataMatrix(), sgpp::datadriven::LearnerLeastSquaresIdentity::testRegular(), sgpp::datadriven::LearnerSGDE::train(), sgpp::pde::OperationLaplaceModLinear::up(), sgpp::pde::UpDownOneOpDimWithShadow::updown(), and sgpp::pde::OperationLaplaceModLinear::upOpDim().

void sgpp::base::DataVector::setDataVectorDefinition ( DataVectorDefinition DataVectorDef)
void sgpp::base::DataVector::setInc ( size_t  inc_elems)
inline

Sets the current number of elements by which the DataVector is extended, if append() or insert() is called and no unused elements are left.

Defaults to 100.

Parameters
inc_elemsIncrement
void sgpp::base::DataVector::sqrt ( )

Takes the square root of all elements of the DataVector.

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

References f, and toString().

Referenced by main().


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