Kernel_CC< T > Class Template Reference

The generic base class. More...

#include <IntegroFunc.hpp>

Inheritance diagram for Kernel_CC< T >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void PrintParam ()=0
int Dimension () const
 Returns the dimensionality of the problem.
LeftBound (int i) const
 Returns the left bound in the i-th dimension.
RightBound (int i) const
 Returns the right bound in the i-th dimension.
virtual T Kernel (T *x, T *y)=0
 The kernel itself.
virtual T CellIntegral (T *x, T *y_min, T *h)
 Integral of the kernel over a hypercube $\int_\Omega k(x, y) dy$, where $\Omega$ is a given grid cell. This value can be computed either numerically or analytically.
 Kernel_CC (int the_dim, T *the_left_bnd, T *the_right_bnd)
 Constructor.
virtual ~Kernel_CC ()
 Virtual destructor.

Detailed Description

template<typename T>
class Kernel_CC< T >

The generic base class.

The integration over the cells should be implemented


Constructor & Destructor Documentation

template<typename T>
Kernel_CC< T >::Kernel_CC ( int  the_dim,
T *  the_left_bnd,
T *  the_right_bnd 
) [inline]

Constructor.

Parameters:
[in] the_dim Dimensionality of the problem
[in] the_left_bnd The left bounds of the domain
[in] the_right_bnd The right bonds of the domain

template<typename T>
virtual Kernel_CC< T >::~Kernel_CC (  )  [inline, virtual]

Virtual destructor.


Member Function Documentation

template<typename T>
virtual void Kernel_CC< T >::PrintParam (  )  [pure virtual]

Implemented in Kernel_CC_Midpoint< T >.

template<typename T>
int Kernel_CC< T >::Dimension (  )  const [inline]

Returns the dimensionality of the problem.

template<typename T>
T Kernel_CC< T >::LeftBound ( int  i  )  const [inline]

Returns the left bound in the i-th dimension.

template<typename T>
T Kernel_CC< T >::RightBound ( int  i  )  const [inline]

Returns the right bound in the i-th dimension.

template<typename T>
virtual T Kernel_CC< T >::Kernel ( T *  x,
T *  y 
) [pure virtual]

The kernel itself.

Parameters:
[in] x Arrays of the arguments
[in] y Arrays of the arguments

Implemented in Kernel_CC_Midpoint< T >.

template<typename T>
T Kernel_CC< T >::CellIntegral ( T *  x,
T *  y_min,
T *  h 
) [inline, virtual]

Integral of the kernel over a hypercube $\int_\Omega k(x, y) dy$, where $\Omega$ is a given grid cell. This value can be computed either numerically or analytically.

Parameters:
[in] x The array of the x-arguments
[in] y_min The array of the left bounds of the intervals
[in] h The array of the sizes of the hypercube
Note:
Some method do not use this function. For this, we define it in this class, and it is enough, to declare Kernel to get a non-virtual class. But the standard implementation of CellIntegral throws the SG_fatal_error to prevent the other methods to use it.

Reimplemented in Kernel_CC_Midpoint< T >.


The documentation for this class was generated from the following files:
Generated on Fri Sep 21 12:34:15 2007 for SG2 by  doxygen 1.5.2