#include <mdp_array.h>
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) |
Example:
mdp_array<float,3> a(5,5,5);
a(0,0,0)=3.15;
1.4.1