SG++-Doxygen-Documentation
|
This class models a vector of scalars supporting operations such as addition, scalar multiplication and componentwise muliplication. More...
#include <FloatArrayVector.hpp>
Public Member Functions | |
void | add (FloatArrayVector const &other) |
FloatScalarVector & | at (size_t i) |
Returns a reference to the i-th FloatScalarVector stored. More... | |
void | componentwiseMult (FloatArrayVector const &other) |
FloatArrayVector (std::vector< FloatScalarVector > const &values) | |
FloatArrayVector (FloatScalarVector value) | |
FloatArrayVector (std::shared_ptr< TreeStorage< FloatScalarVector >> storage) | |
FloatArrayVector () | |
FloatArrayVector (FloatArrayVector const &other) | |
FloatScalarVector | get (size_t i) const |
This function can be called from python because it does not return a reference. More... | |
std::vector< FloatScalarVector > const & | getValues () const |
double | norm () const |
FloatArrayVector & | operator= (FloatArrayVector const &other) |
FloatScalarVector & | operator[] (size_t i) |
Returns a reference to the i-th FloatScalarVector stored. More... | |
FloatScalarVector const & | operator[] (size_t i) const |
This operator is unsafe because it does no range checking. More... | |
void | scalarMult (double const &factor) |
size_t | size () const |
void | sub (FloatArrayVector const &other) |
Static Public Member Functions | |
static FloatArrayVector | one () |
static FloatArrayVector | zero () |
This class models a vector of scalars supporting operations such as addition, scalar multiplication and componentwise muliplication.
It is intended to have the same interface as FloatScalarVector. Thus, one can use the same code for single-evaluation and multi-evaluation, where the mode is controlled by passing FloatArrayVector or FloatScalarVector as a template parameter. It contains multiple values resulting for example from Interpolation with multiple evaluation points. If an operation on two FloatArrayVector elements with different number of elements is executed, the last element of the vector with less elements is repeated until both of them have the same size. This allows e.g. for a zero vector (with one element) which can adjust to vectors of arbitrary size.
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
References python.statsfileInfo::i, and size().
|
inline |
Returns a reference to the i-th FloatScalarVector stored.
If there are fewer elements stored, the number of elements is extended via ensureMinimumSize().
References python.statsfileInfo::i.
Referenced by sgpp::combigrid::PolynomialScalarProductEvaluator::initializeBounds().
|
inline |
References python.statsfileInfo::i, and size().
|
inline |
This function can be called from python because it does not return a reference.
It does not do range checking
References python.statsfileInfo::i.
Referenced by sgpp::combigrid::BSplineInterpolationCoefficientEvaluator::setGridPoints().
|
inline |
|
inline |
|
inlinestatic |
References FloatArrayVector().
|
inline |
|
inline |
Returns a reference to the i-th FloatScalarVector stored.
If there are fewer elements stored, the number of elements is extended via ensureMinimumSize().
References python.statsfileInfo::i.
|
inline |
This operator is unsafe because it does no range checking.
References python.statsfileInfo::i.
|
inline |
References python.statsfileInfo::i.
|
inline |
Referenced by add(), componentwiseMult(), and sub().
|
inline |
References python.statsfileInfo::i, and size().
|
inlinestatic |
References FloatArrayVector().