Public Member Functions | |
SampledMapping () | |
SampledMapping (const SampledMapping< 1, C > &sm) | |
SampledMapping (const Grid< 1 > &grid) | |
SampledMapping (const Grid< 1 > &grid, const Array1D< C > &values) | |
SampledMapping (const Grid< 1 > &grid, const Function< 1, C > &f) | |
SampledMapping (const MultiIndex< int, 1 > &a, const MultiIndex< int, 1 > &b, const InfiniteVector< C, MultiIndex< int, 1 > > &values, const int resolution) | |
SampledMapping (const int a, const int b, const InfiniteVector< C, int > &values, const int resolution) | |
SampledMapping (const Point< 1, C > &a, const Point< 1, C > &b, const FixedArray1D< Array1D< C >, 1 > &values) | |
SampledMapping (const Chart< 1 > &ch, const FixedArray1D< Array1D< C >, 1 > &values, const unsigned int resolution) | |
SampledMapping (const Chart< 1 > &ch, const unsigned int resolution) | |
SampledMapping< 1, C > & | operator= (const SampledMapping< 1, C > &sm) |
void | add (const SampledMapping< 1, C > &s) |
void | add (const C alpha, const SampledMapping< 1, C > &s) |
void | mult (const C alpha) |
const Array1D< C > & | values () const |
void | matlab_output (std::ostream &os) const |
void | gnuplot_output (std::ostream &os) const |
Protected Attributes | |
Array1D< C > | values_ |
MathTL::SampledMapping< 1, C >::SampledMapping | ( | ) |
default constructor, yields empty mapping
MathTL::SampledMapping< 1, C >::SampledMapping | ( | const SampledMapping< 1, C > & | sm | ) |
copy constructor
MathTL::SampledMapping< 1, C >::SampledMapping | ( | const Grid< 1 > & | grid | ) |
constructor from a given grid, yields zero function
MathTL::SampledMapping< 1, C >::SampledMapping | ( | const Grid< 1 > & | grid, |
const Array1D< C > & | values | ||
) |
constructor from a given grid and given values
MathTL::SampledMapping< 1, C >::SampledMapping | ( | const Grid< 1 > & | grid, |
const Function< 1, C > & | f | ||
) |
constructor from a fixed grid and a Function object
MathTL::SampledMapping< 1, C >::SampledMapping | ( | const MultiIndex< int, 1 > & | a, |
const MultiIndex< int, 1 > & | b, | ||
const InfiniteVector< C, MultiIndex< int, 1 > > & | values, | ||
const int | resolution | ||
) |
constructor from given values on 2^{-resolution} Z, clipped to [a,b]
MathTL::SampledMapping< 1, C >::SampledMapping | ( | const int | a, |
const int | b, | ||
const InfiniteVector< C, int > & | values, | ||
const int | resolution | ||
) |
constructor from given values on 2^{-resolution} Z, clipped to [a,b]
MathTL::SampledMapping< 1, C >::SampledMapping | ( | const Point< 1, C > & | a, |
const Point< 1, C > & | b, | ||
const FixedArray1D< Array1D< C >, 1 > & | values | ||
) |
constructor from given tensor product values on a uniform subgrid of the cuboid <a,b>, a,b integer vectors, the number of grid points in the i-th direction is taken from the length of the i-th component array of 'values' (this constructor does not make much sense in 1 space dimension...)
MathTL::SampledMapping< 1, C >::SampledMapping | ( | const Chart< 1 > & | ch, |
const FixedArray1D< Array1D< C >, 1 > & | values, | ||
const unsigned int | resolution | ||
) |
a dyadic subgrid of the hypercube is mapped by a chart 'ch'. so we end up with a dyadic subgrid of a mapped hypercube. 'values' are the corresponding function values.
MathTL::SampledMapping< 1, C >::SampledMapping | ( | const Chart< 1 > & | ch, |
const unsigned int | resolution | ||
) |
a dyadic subgrid of the hypercube is mapped by a chart 'ch'. so we end up with a dyadic subgrid of a mapped hypercube. the function values are initialized with zero.
void MathTL::SampledMapping< 1, C >::add | ( | const SampledMapping< 1, C > & | s | ) |
pointwise in-place summation *this += s of two sampled mappings over the same grid
void MathTL::SampledMapping< 1, C >::add | ( | const C | alpha, |
const SampledMapping< 1, C > & | s | ||
) |
pointwise in-place summation *this += alpha * s of two sampled mappings over the same grid
void MathTL::SampledMapping< 1, C >::gnuplot_output | ( | std::ostream & | os | ) | const |
Gnuplot output of the sampled mapping onto a stream
void MathTL::SampledMapping< 1, C >::matlab_output | ( | std::ostream & | os | ) | const |
Matlab output of the sampled mapping onto a stream
Reimplemented from MathTL::Grid< 1 >.
void MathTL::SampledMapping< 1, C >::mult | ( | const C | alpha | ) |
pointwise in-place multiplication *this *= alpha
SampledMapping< 1, C > & MathTL::SampledMapping< 1, C >::operator= | ( | const SampledMapping< 1, C > & | sm | ) |
assignment operator
const Array1D<C>& MathTL::SampledMapping< 1, C >::values | ( | ) | const [inline] |
reading access to the function values
Array1D<C> MathTL::SampledMapping< 1, C >::values_ [protected] |
internal storage for the function values