Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWGenMat<T>



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

Synopsis

#include <rw/math/genmat.h>
template<class T>
RWGenMat<T> matrix;

Description

Class RWGenMat<T> is a templatized general matrix class.

Example

Public Constructors

RWGenMat()
RWGenMat(unsigned m, unsigned n, RWUninitialized,
         Storage s=COLUMN_MAJOR);
RWGenMat(unsigned m,unsigned n,T initval,
         Storage s=COLUMN_MAJOR);
RWGenMat(const T* dat,unsigned m,unsigned n,
         Storage s=COLUMN_MAJOR);
RWGenMat(const RWMathVec<T>& v,unsigned m,unsigned n,
         Storage s=COLUMN_MAJOR);
RWGenMat(const RWGenMat<T>& m);
RWGenMat(const char *s, Storage s=COLUMN_MAJOR);
RWGenMat(unsigned m, unsigned n, RWTRand<RWRandGenerator>& r,
         Storage s=COLUMN_MAJOR);
RWGenMat<DComplex>::RWGenMat(const RWGenMat<double>& re, 
                             const RWGenMat<double>& im,
                             Storage=COLUMN_MAJOR);

Public Member Functions

RWGenMat<T>
apply(RWGenMat<T>::mathFunType) const;
RWGenMat<RWGenMat<T>::norm_type>
apply2(RWGenMat<T>::mathFunType2) const
RWGenMat<T>::iterator 
begin(Storage s=COLUMN_MAJOR);
RWGenMat<T>::const_iterator 
begin(Storage s=COLUMN_MAJOR) const;

CAUTION:Binary difference and comparison operators between a ROW_MAJOR iterator and a COLUMN_MAJOR iterator have unpredictable results.
unsigned
binaryStoreSize() const;
const RWMathVec<T>
col(int j) const;
RWMathVec<T>
col(int j);
unsigned
cols() const;
int
colStride() const;
T*
data();
const T* 
data() const;
RWGenMat<T> 
deepCopy(Storage s=COLUMN_MAJOR) const;
RWGenMat<T>
copy(Storage s=COLUMN_MAJOR) const;
void
deepenShallowCopy(Storage s=COLUMN_MAJOR);
const RWMathVec<T> 
diagonal(int idiag=0) const;
RWMathVec<T> 
diagonal(int idiag=0);
RWGenMat<T>::iterator
end(Storage s=COLUMN_MAJOR);
RWGenMat<T>::const_iterator
end(Storage s=COLUMN_MAJOR);

CAUTION: Binary difference and comparison operators between a ROW_MAJOR iterator and a COLUMN_MAJOR iterator have unpredictable results.
const RWGenMatPick<T>
pick(const RWIntVec& v1, const RWIntVec& v2) const;
RWGenMatPick<T> 
pick(const RWIntVec& v1, const RWIntVec& v2);
RWGenMat<T>& 
reference(RWGenMat<T>& m);
void
reshape(unsigned m, unsigned n, Storage s=COLUMN_MAJOR);
void
resize(unsigned m,unsigned n, Storage s=COLUMN_MAJOR);
void
restoreFrom(RWvistream&, Storage s=COLUMN_MAJOR);
void
restoreFrom(RWFile&, Storage s=COLUMN_MAJOR);
const RWMathVec<T> 
row(int i) const;
RWMathVec<T>
row(int i);
unsigned   
rows() const;
int
rowStride() const;
void   
saveOn(RWvostream&) const;
void   
saveOn(RWFile&) const;
RWMathVec<T>
slice(int i, int j, unsigned n, int rowstride, int colstride);
RWGenMat<T>
slice(int i, int j, unsigned m, unsigned n, int rowstr1, 
      int colstr1, int rowstr2, int colstr2);

Public Member Operators

T&                  operator()(int i, int j);
T                   operator()(int i, int j) const;
RWMathVec<T>        operator()(int i, RWSlice& j);
const RWMathVec<T>  operator()(int i, RWSlice& j) const;
RWMathVec<T>        operator()(RWSlice& i, int j);
const RWMathVec<T>  operator()(RWSlice& i, int j) const;
RWGenMat<T>         operator()(RWSlice& i, RWSlice& j);
const RWGenMat<T>   operator()(RWSlice& i, RWSlice& j) const;
RWGenMat<T>&        operator++();
void                operator++(int);
RWGenMat<T>&        operator--();
void                operator--(int);
RWGenMat<T>&    operator=(const RWGenMat<T>& m);
RWGenMat<T>&    operator+=(const RWGenMat<T>& m);
RWGenMat<T>&    operator-=(const RWGenMat<T>& m);
RWGenMat<T>&    operator*=(const RWGenMat<T>& m);
RWGenMat<T>&    operator/=(const RWGenMat<T>& m);
RWGenMat<T>&    operator=(const T&);
RWGenMat<T>&    operator+=(const T&);
RWGenMat<T>&    operator-=(const T&);
RWGenMat<T>&    operator*=(const T&);
RWGenMat<T>&    operator/=(const T&);
RWGenMat<T>&    operator*=(const RWGenMat<T>& A);
RWBoolean       operator==(const RWGenMat<T>&);
RWBoolean       operator!=(const RWGenMat<T>&);
operator RWGenMat<promote_type>();

Global Operators

RWGenMat<T> operator-(const RWGenMat<T>&);
RWGenMat<T> operator+(const RWGenMat<T>&);
RWGenMat<T> operator*(const RWGenMat<T>&, const RWGenMat<T>&);
RWGenMat<T> operator/(const RWGenMat<T>&, const RWGenMat<T>&);
RWGenMat<T> operator+(const DComplexGenMat<T>&, const RWGenMat<T>&);
RWGenMat<T> operator-(const DComplexGenMat<T>&, const RWGenMat<T>&);
RWGenMat<T> operator*(const RWGenMat<T>&, const T&);
RWGenMat<T> operator*(const T&, const RWGenMat<T>&);
RWGenMat<T> operator/(const RWGenMat<T>&, const T&);
RWGenMat<T> operator/(const T&, const RWGenMat<T>&);
RWGenMat<T> operator+(const RWGenMat<T>&, const T&);
RWGenMat<T> operator+(const T&, const RWGenMat<T>&);
RWGenMat<T> operator-(const RWGenMat<T>&, const T&);
RWGenMat<T> operator-(const T&, const RWGenMat<T>&);
RWGenMat<T>  operator*(const RWGenMat<T>&, const RWGenMat<T>&);
RWMathVec<T> operator*(const RWGenMat<T>&, const RWMathVec<T>&);
RWMathVec<T> operator*(const RWMathVec<T>&, const RWGenMat<T>&);
RWGenMat<T>   operator%(const RWGenMat<T>&, const RWGenMat<T>&);
RWMathVec<T>  operator%(const RWGenMat<T>&, const RWMathVec<T>&);
RWMathVec<T>  operator%(const RWMathVec<T>&, const RWGenMat<T>&);
ostream&     operator<<(ostream& s,const RWGenMat<T>& m);
istream&     operator>>(istream& s, RWGenMat<T>& v);

Related Global Functions (Templatized)

acos      asin      atan
atan2     bg10      ceil
cos       cosh      dot
exp       floor     log
maxIndex  maxValue  mean
minIndex  minValue  pow
prod      product   sin
sinh      sqrt      sum
tan       tanh      transpose

Related Global Functions (Non-Templatized)

abs       adjoint   arg
conj      frobNorm  imag
linfNorm  l1Norm    maxnorm
norm      real      toChar
toFloat   toInt     toInt
variance

See Also

RWConvertGenMat<From,To>



Previous fileTop of DocumentContentsIndexNext file

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