MathTL
 All Classes Functions Variables Typedefs Enumerations
Public Member Functions | Protected Attributes
MathTL::SampledMapping< 1, C > Class Template Reference
Inheritance diagram for MathTL::SampledMapping< 1, C >:
MathTL::Grid< 1 >

List of all members.

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_

template<class C>
class MathTL::SampledMapping< 1, C >


Constructor & Destructor Documentation

template<class C >
MathTL::SampledMapping< 1, C >::SampledMapping ( )

default constructor, yields empty mapping

template<class C >
MathTL::SampledMapping< 1, C >::SampledMapping ( const SampledMapping< 1, C > &  sm)

copy constructor

template<class C >
MathTL::SampledMapping< 1, C >::SampledMapping ( const Grid< 1 > &  grid)

constructor from a given grid, yields zero function

template<class C >
MathTL::SampledMapping< 1, C >::SampledMapping ( const Grid< 1 > &  grid,
const Array1D< C > &  values 
)

constructor from a given grid and given values

template<class C >
MathTL::SampledMapping< 1, C >::SampledMapping ( const Grid< 1 > &  grid,
const Function< 1, C > &  f 
)

constructor from a fixed grid and a Function object

template<class C >
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]

template<class C >
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]

template<class C >
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...)

template<class C >
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.

template<class C >
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.


Member Function Documentation

template<class C >
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

template<class C >
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

template<class C >
void MathTL::SampledMapping< 1, C >::gnuplot_output ( std::ostream &  os) const

Gnuplot output of the sampled mapping onto a stream

template<class C >
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 >.

template<class C >
void MathTL::SampledMapping< 1, C >::mult ( const C  alpha)

pointwise in-place multiplication *this *= alpha

template<class C >
SampledMapping< 1, C > & MathTL::SampledMapping< 1, C >::operator= ( const SampledMapping< 1, C > &  sm)

assignment operator

template<class C >
const Array1D<C>& MathTL::SampledMapping< 1, C >::values ( ) const [inline]

reading access to the function values


Member Data Documentation

template<class C >
Array1D<C> MathTL::SampledMapping< 1, C >::values_ [protected]

internal storage for the function values


The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Enumerations