Rogue Wave banner
Previous fileTop of DocumentContentsIndexNo Next file

{type}UpperTriMat



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

Synopsis

#include <rw/dutrimat.h>     // DoubleUpperTriMat
#include <rw/futrimat.h>     // FloatUpperTriMat
#include <rw/cutrimat.h>     // DComplexUpperTriMat

DoubleUpperTriMat d;

Description

The classes {TYPE}UpperTriMat encapsulate upper triangular matrices. An upper triangular matrix is 0 above the diagonal.

Example

Storage Scheme

The matrix is stored column-by-column. For example, the matrix:

is stored as follows:

[ A11 A12 A22 A13 A23 A33 ... A1n A2n A3n ... Ann ]

The mapping between the array and storage vector is as follows:

Public Constructors

DoubleUpperTriMat();
FloatUpperTriMat();
DComplexUpperTriMat();
DoubleUpperTriMat(const DoubleUpperTriMat& A);
FloatUpperTriMat(const FloatUpperTriMat& A);
DComplexUpperTriMat(const DComplexUpperTriMat& A);
DoubleUpperTriMat(unsigned n, unsigned n);
FloatUpperTriMat(unsigned n, unsigned n);
DComplexUpperTriMat(unsigned n, unsigned n);
DoubleUpperTriMat(const RWMathVec<double>& vd, 
          unsigned n, unsigned n);
FloatUpperTriMat(const RWMathVec<float>& vd, 
          unsigned n, unsigned n);
DComplexUpperTriMat(const RWMathVec<DComplex>& vd, 
          unsigned n, unsigned n);
DComplexUpperTriMat(const DoubleUpperTriMat& re);
DComplexUpperTriMat(const DoubleUpperTriMat& re, 
                    const DoubleUpperTriMat& im);
DoubleUpperTriMat(const FloatUpperTriMat&);

Public Member Functions

ROFloatRef
FloatUpperTriMat::bcref(int i, int j);
RODoubleRef
DoubleUpperTriMat::bcref(int i, int j);
RODComplexRef
DComplexUpperTriMat::bcref(int i, int j);
void
FloatUpperTriMat::bcset(int i, int j, float x);
void
DoubleUpperTriMat::bcset(int i, int j, double x);
void
DComplexUpperTriMat::bcset(int i, int j, DComplex);
float
FloatUpperTriMat::bcval(int i, int j);
double
DoubleUpperTriMat::bcval(int i, int j);
DComplex
DComplexUpperTriMat::bcval(int i, int j);
unsigned
FloatUpperTriMat::binaryStoreSize();
unsigned
DoubleUpperTriMat::binaryStoreSize();
unsigned
DComplexUpperTriMat::binaryStoreSize();
unsigned
FloatUpperTriMat::cols();
unsigned
DoubleUpperTriMat::cols();
unsigned
DComplexUpperTriMat::cols();
FloatUpperTriMat
FloatUpperTriMat::copy();
DoubleUpperTriMat
DoubleUpperTriMat::copy();
DComplexUpperTriMat
DComplexUpperTriMat::copy();
float*
FloatUpperTriMat::data();
double*
DoubleUpperTriMat::data();
DComplex*
DComplexUpperTriMat::data();
RWMathVec<float>
FloatUpperTriMat::dataVec();
RWMathVec<double>
DoubleUpperTriMat::dataVec();
RWMathVec<DComplex>
DComplexUpperTriMat::dataVec();
FloatUpperTriMat
FloatUpperTriMat::deepCopy();
DoubleUpperTriMat
DoubleUpperTriMat::deepCopy();
DComplexUpperTriMat
DComplexUpperTriMat::deepCopy();
void
FloatUpperTriMat::deepenShallowCopy();
void
DoubleUpperTriMat::deepenShallowCopy();
void
DComplexUpperTriMat::deepenShallowCopy();
FloatUpperTriMat
FloatUpperTriMat::leadingSubmatrix(int k);
DoubleUpperTriMat
DoubleUpperTriMat::leadingSubmatrix(int k);
DComplexUpperTriMat
DComplexUpperTriMat::leadingSubmatrix(int k);
void
FloatUpperTriMat::printOn(ostream&);
void
DoubleUpperTriMat::printOn(ostream&);
void
DComplexUpperTriMat::printOn(ostream&);
ROFloatRef
FloatUpperTriMat::ref(int i, int j);
RODoubleRef
DoubleUpperTriMat::ref(int i, int j);
RODComplexRef
DComplexUpperTriMat::ref(int i, int j);
FloatUpperTriMat
FloatUpperTriMat::reference(FloatUpperTriMat&);
DoubleUpperTriMat
DoubleUpperTriMat::reference(DoubleUpperTriMat&);
DComplexUpperTriMat
DComplexUpperTriMat::reference(DComplexUpperTriMat&);
void
DoubleUpperTriMat::resize(unsigned n, unsigned n);
void
FloatUpperTriMat::resize(unsigned n, unsigned n);
void
DComplexUpperTriMat::resize(unsigned n, unsigned);
void
DoubleUpperTriMat::restoreFrom(RWFile&);
void
FloatUpperTriMat::restoreFrom(RWFile&);
void
DComplexUpperTriMat::restoreFrom(RWFile&);
void
DoubleUpperTriMat::restoreFrom(RWvistream&);
void
FloatUpperTriMat::restoreFrom(RWvistream&);
void
DComplexUpperTriMat::restoreFrom(RWvistream&);
unsigned
FloatUpperTriMat::rows();
unsigned
DoubleUpperTriMat::rows();
unsigned
DComplexUpperTriMat::rows();
void
DoubleUpperTriMat::saveOn(RWFile&);
void
FloatUpperTriMat::saveOn(RWFile&);
void
DComplexUpperTriMat::saveOn(RWFile&);
void
DoubleUpperTriMat::saveOn(RWvostream&);
void
FloatUpperTriMat::saveOn(RWvostream&);
void
DComplexUpperTriMat::saveOn(RWvostream&);
void
FloatUpperTriMat::scanFrom(istream&);
void
DoubleUpperTriMat::scanFrom(istream&);
void
DComplexUpperTriMat::scanFrom(istream&);
void
FloatUpperTriMat::set(int i, int j, float x);
void
DoubleUpperTriMat::set(int i, int j, double x);
void
DComplexUpperTriMat::set(int i, int j, DComplex x);
float
FloatUpperTriMat::val(int i, int j);
double
DoubleUpperTriMat::val(int i, int j);
DComplex
DComplexUpperTriMat::val(int i, int j);
FloatUpperTriMat
FloatUpperTriMat::zero();
DoubleUpperTriMat
DoubleUpperTriMat::zero();
DComplexUpperTriMat
DComplexUpperTriMat::zero();

Public Member Operators

RODoubleRef    FloatUpperTriMat::operator()(int i, int j);
double         FloatUpperTriMat::operator()(int i, 
int j) const; ROFloatRef DoubleUMat::operator()(int i, int j); float DoubleUpperTriMat::operator()(int i,
int j) const; RODComplexRef DComplexUpperTriMat::operator()(int i, int j); DComplex DComplexUpperTriMat::operator()(int i,
int j)const;
DoubleUpperTriMat&    operator=(const DoubleUpperTriMat& A);
FloatUpperTriMat&     operator=(const FloatUpperTriMat& A);
DComplexUpperTriMat&  operator=(const DComplexUpperTriMat& A);
DoubleUpperTriMat&   operator==(const DoubleUpperTriMat& A);
FloatUpperTriMat&    operator==(const FloatUpperTriMat& A);
DComplexUpperTriMat& operator==(const DComplexUpperTriMat& A);
DoubleUpperTriMat&   operator!=(const DoubleUpperTriMat& A);
FloatUpperTriMat&    operator!=(const FloatUpperTriMat& A);
DComplexUpperTriMat& operator!=(const DComplexUpperTriMat& A);
DoubleUpperTriMat&   operator*=(double x);
FloatUpperTriMat&    operator*=(float x);
DComplexUpperTriMat& operator*=(DComplex x);
DoubleUpperTriMat&   operator/=(double x);
FloatUpperTriMat&    operator/=(float x);
DComplexUpperTriMat& operator/=(DComplex x);
DoubleUpperTriMat&   operator+=(const DoubleUpperTriMat& A);
FloatUpperTriMat&    operator+=(const FloatUpperTriMat& A);
DComplexUpperTriMat& operator+=(const DComplexUpperTriMat& A);
DoubleUpperTriMat&   operator-=(const DoubleUpperTriMat& A);
FloatUpperTriMat&    operator-=(const FloatUpperTriMat& A);
DComplexUpperTriMat& operator-=(const DComplexUpperTriMat& A);
DoubleUpperTriMat&   operator*=(const DoubleUpperTriMat& A);
FloatUpperTriMat&    operator*=(const FloatUpperTriMat& A);
DComplexUpperTriMat& operator*=(const DComplexUpperTriMat& A);
DoubleUpperTriMat&   operator/=(const DoubleUpperTriMat& A);
FloatUpperTriMat&    operator/=(const FloatUpperTriMat& A);
DComplexUpperTriMat& operator/=(const DComplexUpperTriMat& A);

Global Operators

DoubleUpperTriMat    operator+(const DoubleUpperTriMat&);
FloatUpperTriMat     operator+(const FloatUpperTriMat&);
DComplexUpperTriMat  operator+(const DComplexUpperTriMat&);
DoubleUpperTriMat    operator-(const DoubleUpperTriMat&);
FloatUpperTriMat     operator-(const FloatUpperTriMat&);
DComplexUpperTriMat  operator-(const DComplexUpperTriMat&);
DoubleUpperTriMat    operator+(const DoubleUpperTriMat&, 
const DoubleUpperTriMat&); FloatUpperTriMat operator+(const FloatUpperTriMat&,
const FloatUpperTriMat&); DComplexUpperTriMat operator+(const DComplexUpperTriMat&,
const DComplexUpperTriMat&); DoubleUpperTriMat operator-(const DoubleUpperTriMat&,
const DoubleUpperTriMat&); FloatUpperTriMat operator-(const FloatUpperTriMat&,
const FloatUpperTriMat&); DComplexUpperTriMat operator-(const DComplexUpperTriMat&,
const DComplexUpperTriMat&); DoubleUpperTriMat operator*(const DoubleUpperTriMat&,
const DoubleUpperTriMat&); FloatUpperTriMat operator*(const FloatUpperTriMat&,
const FloatUpperTriMat&); DComplexUpperTriMat operator*(const DComplexUpperTriMat&,
const DComplexUpperTriMat&); DoubleUpperTriMat operator/(const DoubleUpperTriMat&,
const DoubleUpperTriMat&); FloatUpperTriMat operator/(const FloatUpperTriMat&,
const FloatUpperTriMat&); DComplexUpperTriMat operator/(const DComplexUpperTriMat&,
const DComplexUpperTriMat&);
DoubleUpperTriMat   operator*(double,
const DoubleUpperTriMat&); DoubleUpperTriMat operator*(const DoubleUpperTriMat&,
double); FloatUpperTriMat operator*(float,const FloatUpperTriMat&); FloatUpperTriMat operator*(const FloatUpperTriMat&,float); DComplexUpperTriMat operator*(DComplex,
const DComplexUpperTriMat&); DComplexUpperTriMat operator*(const DComplexUpperTriMat&,
DComplex); DoubleUpperTriMat operator/(const DoubleUpperTriMat&,
double); FloatUpperTriMat operator/(const FloatUpperTriMat&,
float); DComplexUpperTriMat operator/(const DComplexUpperTriMat&,
DComplex);
ostream&   operator<<(ostream& s, const DoubleUpperTriMat&);
ostream&   operator<<(ostream& s, const FloatUpperTriMat&);
ostream&   operator<<(ostream& s, const DComplexUpperTriMat&);
istream&   operator>>(istream& s, const DoubleUpperTriMat&);
istream&   operator>>(istream& s, const FloatUpperTriMat&);
istream&   operator>>(istream& s const DComplexUpperTriMat&);

Global Functions

DoubleUpperTriMat
abs(const DoubleUpperTriMat&);
FloatUpperTriMat
abs(const FloatUpperTriMat&);
DoubleUpperTriMat
abs(const DComplexUpperTriMat&);
DoubleUpperTriMat
arg(const DComplexUpperTriMat& A);
DComplexUpperTriMat
conj(const DComplexUpperTriMat& A);
DoubleUpperTriMat
imag(const DComplexUpperTriMat& A);
double
maxValue(const DoubleUpperTriMat&);
float
maxValue(const FloatUpperTriMat&);
double
minValue(const DoubleUpperTriMat&);
float
minValue(const FloatUpperTriMat&);
DoubleUpperTriMat
norm(const DComplexUpperTriMat& A);
RWMathVec<double>
product(const DoubleUpperTriMat& A, 
        const RWMathVec<double>& x);
RWMathVec<float>
product(const FloatUpperTriMat& A, const RWMathVec<float>& x);
RWMathVec<DComplex>
product(const DComplexUpperTriMat& A,
        const RWMathVec<DComplex>& x);
RWMathVec<double>
product(const RWMathVec<double>& x, 
        const DoubleUpperTriMat& A);
RWMathVec<float>
product(const RWMathVec<float>& x, const FloatUpperTriMat& A);
RWMathVec<DComplex>
product(const RWMathVec<DComplex>& x,
        const DComplexUpperTriMat& A);
DoubleUpperTriMat
real(const DComplexUpperTriMat& A);
FloatUpperTriMat
toFloat(const DoubleUpperTriMat&);
DoubleUpperTriMat
toUpperTriMat(const RWGenMat<double>&);
FloatUpperTriMat
toUpperTriMat(const RWGenMat<float>&);
DComplexUpperTriMat
toUpperTriMat(const RWGenMat<DComplex>&);
DoubleLowerTriMat
transpose(const DoubleUpperTriMat&);
FloatLowerTriMat
transpose(const FloatUpperTriMat&);
DComplexLowerTriMat
transpose(const DComplexUpperTriMat&);


Previous fileTop of DocumentContentsIndexNo Next file

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