Files Classes Functions Hierarchy
#include <vecinterp.h>
Public Member Functions | |
| vecInterp2D1 (T const &_p0, T const &_dp0, T const &_p1, T const &_dp1) | |
| The boundary conditions at the two points are vectors. | |
| void | operator() (T &val, doublec t) const |
| A vector function where t=0.0 gives p0 and t=1.0 gives p1. | |
| T const | operator() (doublec t) const |
| A vector function where t=0.0 gives p0 and t=1.0 gives p1. | |
Public Attributes | |
| T | p0 |
| T | dp0 |
| T | p1 |
| T | dp1 |
This is better than the linear interpolation. Cubic polynomials are used to fit the first derivative boundary conditions at the end points.
The values of the powerseries were pre calculated so that the vector they are multiplying either exists or not at the boundary points. For example, p0 has fA0 summing to 1 when t=0. fA0 sums to 0 at t=1. Taking the derivative of fA0 call it fA0' evaluates to 0 ant t=0 and t=1.
Definition at line 46 of file vecinterp.h.
| vecInterp2D1< T >::vecInterp2D1 | ( | T const & | _p0, | |
| T const & | _dp0, | |||
| T const & | _p1, | |||
| T const & | _dp1 | |||
| ) | [inline] |
| T const vecInterp2D1< T >::operator() | ( | doublec | t | ) | const [inline] |
A vector function where t=0.0 gives p0 and t=1.0 gives p1.
Definition at line 78 of file vecinterp.h.
References vecInterp2D1< T >::dp0, vecInterp2D1< T >::dp1, vecInterp2D1< T >::p0, and vecInterp2D1< T >::p1.
| void vecInterp2D1< T >::operator() | ( | T & | val, | |
| doublec | t | |||
| ) | const [inline] |
A vector function where t=0.0 gives p0 and t=1.0 gives p1.
Definition at line 74 of file vecinterp.h.
References vecInterp2D1< T >::dp0, vecInterp2D1< T >::dp1, vecInterp2D1< T >::p0, and vecInterp2D1< T >::p1.
| T vecInterp2D1< T >::dp0 |
| T vecInterp2D1< T >::dp1 |
| T vecInterp2D1< T >::p0 |
| T vecInterp2D1< T >::p1 |
1.5.8