Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Curvature< N, X > Class Template Reference

A helper class for storing second-derivatives. More...

List of all members.

Public Methods

 Curvature ()
void setElement (int n, X const v)
 Set a specific subelement indexed by a single integer.

void init (VEC< N, int > const &dim)
 Initialize the curvature structure, allocating lower-dimensional subcomponents of the requested size.


Friends

class LUT< N, X >


Detailed Description

template<int N, class X>
class Curvature< N, X >

A helper class for storing second-derivatives.

A helper class for storing second-derivatives used in spline interpolation. The structure mirrors that of LUT<N,X>, with nested vectors of progressively lower dimensional Curvature instances.

You should never need to use this class directly.


Constructor & Destructor Documentation

template<int N, class X>
Curvature< N, X >::Curvature   [inline]
 


Member Function Documentation

template<int N, class X>
void Curvature< N, X >::init VEC< N, int > const &    dim [inline]
 

Initialize the curvature structure, allocating lower-dimensional subcomponents of the requested size.

template<int N, class X>
void Curvature< N, X >::setElement int    n,
X const    v
[inline]
 

Set a specific subelement indexed by a single integer.

The indexing mirrors the LUT method getElement().

For example: if N = 3 and the dimensions are 10, 5, and 20, then n = 834 would correspond to the indices (4, 3, 16) --- (16*5 + 3)*10 + 4 = 834


Friends And Related Function Documentation

template<int N, class X>
friend class LUT< N, X > [friend]
 


The documentation for this class was generated from the following file:
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage.

Generated on Tue Oct 14 12:06:40 2003, using Doxygen 1.2.18.

[SF.net]