Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWMathArray<T>



Data Type and Member Function Indexes
(exclusive of constructors and destructors)

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>& 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&);
RWBoolean    operator==(const RWMathArray<T>&);
RWBoolean    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)

acos        asin         atan
atan2       ceil         cos
cosh        exp          floor
log         log10        maxIndex
maxValue    mean         minIndex
minValue    pow          prod
sin         sinh         sqrt
sum         tan          tanh
toGenMat    toScalar     toVec

Related Global Functions (Non-Templatized)

abs         arg      conj
frobNorm    imag     maxNorm
norm        real     toChar
toFloat     toInt    variance

See Also

RWConvertMathArray<From,To>



Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.