Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

mdp_array< T, nc_ > Class Template Reference

generic container for multidimensional arrays More...

#include <mdp_array.h>

List of all members.

Public Member Functions

const int & ndim () const
T * address ()
uint * size_address ()
T & operator[] (const uint i)
const T & operator[] (const uint i) const
uint length (const uint i) const
uint length () const
uint size (uint i) const
uint size () const
void dimension (const uint *p)
void dimension (const uint c0_=1, const uint c1_=1, const uint c2_=1, const uint c3_=1, const uint c4_=1)
 mdp_array (const uint c0_=1, const uint c1_=1, const uint c2_=1, const uint c3_=1, const uint c4_=1)
 mdp_array (const uint *p)
 mdp_array (const T *m0, const uint c0_=1, const uint c1_=1, const uint c2_=1, const uint c3_=1, const uint c4_=1)
 mdp_array (const T *m0, const uint *p)
 mdp_array (const mdp_array &a)
void operator= (const mdp_array &a)
T & operator() (const uint i0, const uint i1=0, const uint i2=0, const uint i3=0, const uint i4=0)
const T & operator() (const uint i0, const uint i1=0, const uint i2=0, const uint i3=0, const uint i4=0) const

Friends

void prepare (const mdp_array &a)
mdp_array operator+ (const mdp_array &a, const mdp_array &b)
mdp_array operator- (const mdp_array &a, const mdp_array &b)
template<class T2>
mdp_array operator * (T2 x, const mdp_array &a)
mdp_array applytoall (const mdp_array &a, T(*fptr)(T, void *), void *x=0)
mdp_array applytoall (const mdp_array &a, const mdp_array &b, T(*fptr)(T, T, void *), void *x=0)
ostream & operator<< (ostream &os, const mdp_array &a)


Detailed Description

template<class T, uint nc_>
class mdp_array< T, nc_ >

generic container for multidimensional arrays

Example:

       mdp_array<float,3> a(5,5,5);
       a(0,0,0)=3.15;
    


The documentation for this class was generated from the following file:
Generated on Sun Feb 27 15:12:25 2005 by  doxygen 1.4.1