MultiArray.hpp File Reference

Dynamically allocated multidimentional array of arbitrary dimensionality (class MultiArray<T>). More...

#include <fstream>
#include "MultiIndex.hpp"
#include "sg_mpi.hpp"

Include dependency graph for MultiArray.hpp:

This graph shows which files directly or indirectly include this file:


Classes

class  MultiArray< T >
 The multidimensional variabled size array class. More...

Functions

template<typename T>
std::ostream & operator<< (std::ostream &, MultiArray< T > &)
 The C++-style output operator.
template<typename T>
std::istream & operator>> (std::istream &, MultiArray< T > &)
 The C++-style input operator.
template<typename T>
std::ostream & operator<< (std::ostream &out, const MultiArray< T > &a)

Detailed Description

Dynamically allocated multidimentional array of arbitrary dimensionality (class MultiArray<T>).

Dynamically allocated multidimentional array of arbitrary dimensionality. This is the basic type for grid functions.

Date:
June 30, 2004 - the new version

Function Documentation

template<typename T>
std::ostream& operator<< ( std::ostream &  out,
const MultiArray< T > &  a 
) [inline]

template<typename T>
std::ostream& operator<< ( std::ostream &  ,
MultiArray< T > &   
) [inline]

The C++-style output operator.

Print the MultiArray in the ASCII-form suitable for MatLab, i.e. the first line lists the sizes of the MultiArray for all the dimensions, and the second line lists all the elements.

template<typename T>
std::istream & operator>> ( std::istream &  ,
MultiArray< T > &   
) [inline]

The C++-style input operator.

Reads values of the array from a stream in the format of operator << . On errors like memory lack the function throws an exception.


Generated on Fri Sep 21 12:33:34 2007 for SG2 by  doxygen 1.5.2