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

RWGenMat<T>

Module:  Essential Math    Group:  Math Collection classes


Does not inherit

Local Index

Members

Non-Members

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&);
bool       operator==(const RWGenMat<T>&);
bool       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>&);
ostream&     operator<<(ostream& s,const RWGenMat<T>& m);
istream&     operator>>(istream& s, RWGenMat<T>& v);

Related Global Functions (Templatized)

Related Global Functions (Non-Templatized)

See Also

RWConvertGenMat<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.