Public Member Functions | |
SampledMapping () | |
SampledMapping (const SampledMapping< 2, C > &sm) | |
SampledMapping (const Grid< 2 > &grid) | |
SampledMapping (const Grid< 2 > &grid, const Matrix< C > &values) | |
SampledMapping (const Grid< 2 > &grid, const Function< 2, C > &f) | |
SampledMapping (const Grid< 2 > &grid, Function< 1, C > &f) | |
SampledMapping (const MultiIndex< int, 2 > &a, const MultiIndex< int, 2 > &b, const InfiniteVector< C, MultiIndex< int, 2 > > &values, const int resolution) | |
SampledMapping (const Point< 2, C > &a, const Point< 2, C > &b, const FixedArray1D< Array1D< C >, 2 > &values) | |
SampledMapping (const Chart< 2 > &ch, const FixedArray1D< Array1D< C >, 2 > &values, const unsigned int resolution) | |
SampledMapping (const Chart< 2 > &ch, const unsigned int resolution) | |
SampledMapping< 2, C > & | operator= (const SampledMapping< 2, C > &sm) |
void | add (const SampledMapping< 2, C > &s) |
void | add (const C alpha, const SampledMapping< 2, C > &s) |
void | mult (const C alpha) |
const Matrix< C > & | values () const |
void | matlab_output (std::ostream &os) const |
void | gnuplot_output (std::ostream &os) const |
void | octave_output (std::ostream &os) const |
Protected Attributes | |
Matrix< C > | values_ |
MathTL::SampledMapping< 2, C >::SampledMapping | ( | ) |
default constructor, yields empty mapping
MathTL::SampledMapping< 2, C >::SampledMapping | ( | const SampledMapping< 2, C > & | sm | ) |
copy constructor
MathTL::SampledMapping< 2, C >::SampledMapping | ( | const Grid< 2 > & | grid | ) |
constructor from a given grid, yields zero function
MathTL::SampledMapping< 2, C >::SampledMapping | ( | const Grid< 2 > & | grid, |
const Matrix< C > & | values | ||
) |
constructor from a given grid and given values (columns of the matrix correspond to the x grid)
MathTL::SampledMapping< 2, C >::SampledMapping | ( | const Grid< 2 > & | grid, |
const Function< 2, C > & | f | ||
) |
constructor from a fixed grid and a Function object
MathTL::SampledMapping< 2, C >::SampledMapping | ( | const Grid< 2 > & | grid, |
Function< 1, C > & | f | ||
) |
constructor from a fixed grid and a Function object, here we take the time variable as y-axis (note that the parameter f is not const due to the set_time() calls)
MathTL::SampledMapping< 2, C >::SampledMapping | ( | const MultiIndex< int, 2 > & | a, |
const MultiIndex< int, 2 > & | b, | ||
const InfiniteVector< C, MultiIndex< int, 2 > > & | values, | ||
const int | resolution | ||
) |
constructor from given values on 2^{-resolution} Z^2, clipped to [a,b]^2 (CURRENTLY NOT IMPLEMENTED!)
MathTL::SampledMapping< 2, C >::SampledMapping | ( | const Point< 2, C > & | a, |
const Point< 2, C > & | b, | ||
const FixedArray1D< Array1D< C >, 2 > & | 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'
MathTL::SampledMapping< 2, C >::SampledMapping | ( | const Chart< 2 > & | ch, |
const FixedArray1D< Array1D< C >, 2 > & | 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< 2, C >::SampledMapping | ( | const Chart< 2 > & | 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< 2, C >::add | ( | const SampledMapping< 2, C > & | s | ) |
pointwise in-place summation *this += s of two sampled mappings over the same grid
void MathTL::SampledMapping< 2, C >::add | ( | const C | alpha, |
const SampledMapping< 2, C > & | s | ||
) |
pointwise in-place summation *this += alpha * s of two sampled mappings over the same grid
void MathTL::SampledMapping< 2, C >::gnuplot_output | ( | std::ostream & | os | ) | const |
Matlab output of the sampled mapping onto a stream
void MathTL::SampledMapping< 2, C >::matlab_output | ( | std::ostream & | os | ) | const |
Matlab output of the sampled mapping onto a stream
Reimplemented from MathTL::Grid< 2 >.
void MathTL::SampledMapping< 2, C >::mult | ( | const C | alpha | ) |
pointwise in-place multiplication *this *= alpha
void MathTL::SampledMapping< 2, C >::octave_output | ( | std::ostream & | os | ) | const |
Octave-compatible output of the sampled mapping onto a stream
Reimplemented from MathTL::Grid< 2 >.
SampledMapping< 2, C > & MathTL::SampledMapping< 2, C >::operator= | ( | const SampledMapping< 2, C > & | sm | ) |
assignment operator
const Matrix<C>& MathTL::SampledMapping< 2, C >::values | ( | ) | const [inline] |
reading access to the function values
Matrix<C> MathTL::SampledMapping< 2, C >::values_ [protected] |
internal storage for the function values