Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Math Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWMathArray<T>

Module:  Essential Math    Group:  Math Collection classes


Does not inherit

Local Index

Members

Non-Members

Synopsis

#include <rw/math/mtharray.h>
RWMathArray<T> array;

Description

Class RWMathArray<T> is a templatized arbitrary dimension array class.

Example

Public Constructors

RWMathArray()
RWMathArray(unsigned m, unsigned n, unsigned o,
            RWUninitialized);
RWMathArray(unsigned m, unsigned n, unsigned o, unsigned p,
            RWUninitialized);
RWMathArray(const RWIntVec& n, RWUninitialized);
RWMathArray(unsigned m, unsigned n, unsigned o, T val);
RWMathArray(unsigned m, unsigned n, unsigned o, unsigned p, T val);
RWMathArray(const RWIntVec& n, T val);
RWMathArray(const RWIntVec& n, 
            RWTRand<RWRandGenerator>& r, Storage s);
RWMathArray(unsigned m, unsigned n, unsigned o, 
            RWTRand<RWRandGenerator>& r, Storage s);
RWMathArray(unsigned m, unsigned n, unsigned o, unsigned p, 
            RWTRand<RWRandGenerator>& r);
RWMathArray(const T* dat, unsigned m, 
            unsigned n, unsigned o);
RWMathArray(const T* dat, unsigned m, 
            unsigned n, unsigned o, unsigned p);
RWMathArray(const T* dat, const IntVec& n);
RWMathArray(const RWMathVec<T>& v, unsigned m, 
            unsigned n, unsigned o);
RWMathArray(const RWMathVec<T>& v, unsigned m, 
            unsigned n, unsigned o, unsigned p);
RWMathArray(const RWMathVec<T>& v, const IntVec& n);
RWMathArray(const RWMathArray<T>& m);
RWMathArray(const char *s);
RWMathArray(const RWMathVec<T>&);
RWMathArray(const RWGenMat<T>&);
RWMathArray<DComplex>::RWMathArray
             (const RWMathArray<double>& re, 
              const RWMathArray<double>& im);

Public Member Functions

RWMathArray<T> 
apply(RWMathArray<T>::mathFunType) const;
RWMathArray<RWMathArray<T>::norm_type>
apply2(RWMathArray<T>::mathFunType2) const;
RWMathArray<T>::iterator 
begin();
RWMathArray<T>::const_iterator 
begin() const;
unsigned
binaryStoreSize() const;
T*
data();
const T*
data() const;
RWMathArray<T>
deepCopy() const;
RWMathArray<T>
copy() const;
void
deepenShallowCopy();
unsigned
dimension() const;
RWMathArray<T>::iterator 
end();
RWMathArray<T>::const_iterator 
end() const;
int
length(int i) const;
const RWIntVec&
length() const;
RWMathArray<T>
reference(RWMathArray<T>& m);
void
reshape(unsigned m, unsigned n, unsigned o);
void
reshape(unsigned m, unsigned n, unsigned o, unsigned p);
void
reshape(const RWIntVec& v);
void
resize(unsigned m, unsigned n, unsigned o);
void
resize(unsigned m, unsigned n, unsigned o, unsigned p);
void
resize(const RWIntVec& v);
void
restoreFrom(RWvistream&);
void
restoreFrom(RWFile&);
void
saveOn(RWvostream&) const;
void
saveOn(RWFile&) const;
RWMathArray<T>
slice(const RWIntVec& i, const RWIntVec& n,
const RWGenMat<int>& str);

Public Member Operators

T&                    operator()(const RWIntVec&);
T                     operator()(const RWIntVec&) const;
T&                    operator()(i,j,k);
T                     operator()(i,j,k) const;
T&                    operator()(i,j,k,l);
T                     operator()(i,j,k,l) const;
RWMathVec<T>          operator()(i,j,k);
const RWMathVec<T>    operator()(i,j,k) const;
RWMathVec<T>          operator()(i,j,k,l);
const RWMathVec<T>    operator()(i,j,k,l) const;
RWGenMat<T>           operator()(i,j,k);
const RWGenMat<T>     operator()(i,j,k) const;
RWGenMat<T>           operator()(i,j,k,l);
const RWGenMat<T>     operator()(i,j,k,l) const;
RWMathArray<T>        operator()(i,j,k);
const RWMathArray<T>  operator()(i,j,k) const;
RWMathArray<T>        operator()(i,j,k,l);
const RWMathArray<T>  operator()(i,j,k,l) const;
T&    operator[](const RWIntVec& i);
T     operator[](const RWIntVec& I) const;
RWMathArray<T>&    operator++();
void               operator++(int);
RWMathArray<T>&    operator--();
void               operator--(int);
RWMathArray<T>&    operator=(const RWMathArray<T>& m);
RWMathArray<T>&    operator+=(const RWMathArray<T>& m);
RWMathArray<T>&    operator-=(const RWMathArray<T>& m);
RWMathArray<T>&    operator*=(const RWMathArray<T>& m);
RWMathArray<T>&    operator/=(const RWMathArray<T>& m);
RWMathArray<T>&    operator=(const T&);
RWMathArray<T>&    operator+=(const T&);
RWMathArray<T>&    operator-=(const T&);
RWMathArray<T>&    operator*=(const T&);
RWMathArray<T>&    operator/=(const T&);
bool    operator==(const RWMathArray<T>&);
bool    operator!=(const RWMathArray<T>&);
operator RWMathArray<promote_type>();

Global Operators

RWMathArray<T>    operator-(const RWMathArray<T>&);
RWMathArray<T>    operator+(const RWMathArray<T>&);
RWMathArray<T>    operator*(const RWMathArray<T>&,
                            const RWMathArray<T>&);
RWMathArray<T>    operator/(const RWMathArray<T>&,
                            const RWMathArray<T>&);
RWMathArray<T>    operator+(const RWMathArray<T>&,
                            const RWMathArray<T>&);
RWMathArray<T>    operator-(const RWMathArray<T>&,
                            const RWMathArray<T>&);
RWMathArray<T>    operator*(const RWMathArray<T>&, const T&);
RWMathArray<T>    operator*(const T&, const RWMathArray<T>&);
RWMathArray<T>    operator/(const RWMathArray<T>&, const T&);
RWMathArray<T>    operator/(const T&, const RWMathArray<T>&);
RWMathArray<T>    operator+(const RWMathArray<T>&, const T&);
RWMathArray<T>    operator+(const T&, const RWMathArray<T>&);
RWMathArray<T>    operator-(const RWMathArray<T>&, const T&);
RWMathArray<T>    operator-(const T&, const RWMathArray<T>&);
ostream&    operator<<(ostream& s,const RWMathArray<T>& v);
istream&    operator>>(istream& s, RWMathArray<T>& v);

Related Global Functions (Templatized)

Related Global Functions (Non-Templatized)

See Also

RWConvertMathArray<From,To>



Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.