Kernel_CC_Midpoint< T > Class Template Reference

The base class with the computation of the cell integrals by the mid-point rule. More...

#include <IntegroFunc.hpp>

Inheritance diagram for Kernel_CC_Midpoint< T >:

Inheritance graph
[legend]
Collaboration diagram for Kernel_CC_Midpoint< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void PrintParam ()=0
 Prints the name and the parameters of the kernel.
int NPoints () const
 Returns the # of the points for the mid-point rule.
virtual T Kernel (T *x, T *y)=0
 The kernel itself.
CellIntegral (T *x, T *y_min, T *h)
 Integral of the kernel over a hypercube $ \int_\Omega k(x, y) dy $, where $\Omega = [y_{min,0}, y_{max,0}]x \dots x[y_{min,dim-1}, y_{max,dim-1}]$ This value is computed by the summation mid-point rule.
 Kernel_CC_Midpoint (int the_dim, T *the_left_bnd, T *the_right_bnd, int the_n_points)
 Constructor.
virtual ~Kernel_CC_Midpoint ()
 Virtual destructor.

Detailed Description

template<typename T>
class Kernel_CC_Midpoint< T >

The base class with the computation of the cell integrals by the mid-point rule.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
[in] the_dim The dimensionality of the kernel
[in] the_left_bnd The left bounds of the domain
[in] the_right_bnd The right bonds of the domain
[in] the_n_points # of points in every dir. for the mid-point rule

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

Virtual destructor.


Member Function Documentation

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

Prints the name and the parameters of the kernel.

Implements Kernel_CC< T >.

template<typename T>
int Kernel_CC_Midpoint< T >::NPoints (  )  const [inline]

Returns the # of the points for the mid-point rule.

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

The kernel itself.

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

Implements Kernel_CC< T >.

template<typename T>
T Kernel_CC_Midpoint< 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 = [y_{min,0}, y_{max,0}]x \dots x[y_{min,dim-1}, y_{max,dim-1}]$ This value is computed by the summation mid-point rule.

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

Reimplemented from Kernel_CC< 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