Public Types | Public Member Functions | Public Attributes

Fiber::PolynomialArray< T > Class Template Reference
[Multidimensional arrays whose values are direct products.]

light-weight An object with neglible overhead when copying. More...

#include <DirectProductArray.hpp>

List of all members.

Public Types

Public Member Functions

Public Attributes


Detailed Description

template<class T>
class Fiber::PolynomialArray< T >

light-weight An object with neglible overhead when copying.

An implementation of the one-dimensional virtual array that computes its elements as an polynomial expression of the index.

Parameters:
Storage The class holding the polynomial coefficients; it must provide an element access operator [] and a size() member function, similar to the STL vector class or VecAl::FixedArray<>.

Member Function Documentation

template<class T >
bool Fiber::PolynomialArray< T >::locate ( T &  value  )  const [inline]

Find the index location of the given (most likely floating point) value within this polynomial array.

Returns:
false if this value is not contained.
Todo:
Expand to cover non-linear polynomials (currently implementation is trivially just for linear expressions).