Public Types | Public Member Functions | Public Attributes

Fiber::LinearDirectProductMemArray< T, DeltaT, MDIMS > Class Template Reference
[Multidimensional arrays whose values are direct products.]

Convenience class - a Direct Product array which uses linear expressions for each index dimension. More...

#include <DirectProductArray.hpp>

List of all members.

Public Types

Public Member Functions

Public Attributes


Detailed Description

template<class T, class DeltaT = T, int MDIMS = T::SIZE>
class Fiber::LinearDirectProductMemArray< T, DeltaT, MDIMS >

Convenience class - a Direct Product array which uses linear expressions for each index dimension.

It can be set up via convenient constructors as demonstrated in the following code segment, defining a 3D array starting at (1,1,1) with a spacing of (.1,.2,3) on 30x20x10 points:

MemCore::Ref<LinearDirectProductMemArray<Eagle::point3> > 
        P( MIndex(30,20,10), Eagle::point3(1,1,1), Eagle::point3(.1,.2,.3);
Examples:

BoundingBoxSimple.cpp, and uniform_scalar.cpp.


Constructor & Destructor Documentation

template<class T, class DeltaT = T, int MDIMS = T::SIZE>
Fiber::LinearDirectProductMemArray< T, DeltaT, MDIMS >::LinearDirectProductMemArray ( const index_t  dims[MDIMS],
const T &  base,
const DeltaT &  delta,
const MemBase::Creator_t C = MemCore::NullPtr() 
) [inline]

Constructor, initializes the Components members.

dims The dimensionality of the array base The origin of the data values delta The spacing of the data values

Note:
Each component is described by a linear array. If there are more components than linear arrays, then only the first MDIMS component get a non-zero length.