Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

TPSurface Class Reference

tensor product surface. More...

#include <TPSurface.h>

List of all members.

Public Methods

 TPSurface ()
 ~TPSurface ()
bool redim (const SplineSpace &space1_, const SplineSpace &space2_)
bool ok () const
SplineSpace getSpaceNo (int i) const
NUMT operator ((real) x, real y)
NUMT derivative (int order1, int order2, real x, real y)
void makeTable (const VecSimple(real) &x, const VecSimple(real) &y, MatSimple(NUMT) &table)
void getCoef (MatSimple(NUMT) &mat)
void setCoef (const MatSimple(NUMT) &coef)
void interpolation (const VecSimple(real) &x, const VecSimple(real) &y, const ArrayGenSimple(NUMT) &data, bool repeat=false)
void cubicInterpolation (const VecSimple(real) &x, const VecSimple(real) &y, const ArrayGenSimple(NUMT) &data, const char *bcond1="Free", const char *bcond2="Free", bool repeat=false)
void scan (Is is)


Detailed Description

tensor product surface.

NAME: TPSurface - tensor product surface

DESCRIPTION:

This class is designed to handle specially the 2D tensor product spline surfaces.


Constructor & Destructor Documentation

TPSurface::TPSurface ( ) [inline]
 

No special initialization needed.

TPSurface::~TPSurface ( ) [inline]
 


Member Function Documentation

void TPSurface::cubicInterpolation ( const VecSimple(real) & x,
const VecSimple(real) & y,
const ArrayGenSimple(NUMT) & data,
const char * bcond1 = "Free",
const char * bcond2 = "Free",
bool repeat = false )
 

carries out the cubic interpolation in both x and y directions. No spline space is needed to be ready when this function is called. It is inside the funtion where the two spaces are built up.

NUMT TPSurface::derivative ( int order1,
int order2,
real x,
real y )
 

calculates the derivative values.

void TPSurface::getCoef ( MatSimple(NUMT) & mat )
 

gets the coefficients.

SplineSpace TPSurface::getSpaceNo ( int i ) const
 

void TPSurface::interpolation ( const VecSimple(real) & x,
const VecSimple(real) & y,
const ArrayGenSimple(NUMT) & data,
bool repeat = false )
 

is the usual interpolation process. The two spline spaces must be ready when this function is called.

void TPSurface::makeTable ( const VecSimple(real) & x,
const VecSimple(real) & y,
MatSimple(NUMT) & table )
 

fills a "MatSimple(real)" with function values.

bool TPSurface::ok ( ) const [inline]
 

checks whether the spline is ready for usage.

NUMT TPSurface::operator ( (real) x,
real y )
 

bool TPSurface::redim ( const SplineSpace & space1_,
const SplineSpace & space2_ ) [inline]
 

attaches new spline spaces.

void TPSurface::scan ( Is is )
 

reads interpolation data directly from an ASCII file and carries out cubic interpolation.

void TPSurface::setCoef ( const MatSimple(NUMT) & coef )
 

assigns the coefficients.


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.