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

RWLowerTriMat<T>

Module:  Linear Algebra   Group:  Sparse Matrix classes


Does not inherit

Local Index

Members

Non-Members

Synopsis

#include <rw/lapack/ltrimat.h>

RWLowerTriMat<double> d;

Description

A lower triangular matrix is 0 below the diagonal. The class
RWLowerTriMat<T> encapsulates lower triangular matrices.

Example

Storage Scheme

The matrix is stored row by row. For example, the matrix:

is stored as follows:

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

Public Constructors

RWLowerTriMat();
RWLowerTriMat(const RWLowerTriMat<T>& A);
RWLowerTriMat(unsigned n, unsigned n);
RWLowerTriMat(const RWMathVec<T>& vd, unsigned n,
              unsigned n);
RWLowerTriMat<DComplex>(const RWLowerTriMat<double>&
                        re);
RWLowerTriMat<DComplex>(const RWLowerTriMat<double>&
                      re,
const RWLowerTriMat<double>& im);
RWLowerTriMat<double>(const RWLowerTriMat<float>&);

Public Member Functions

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

Public Member Operator

RWRORef<T>    RWLowerTriMat<T>::operator()(int i,
int j); T RWLowerTriMat<T>::operator()(int i,
int j) const;

Public Member Operators

RWLowerTriMat<T>&    operator=(const
RWLowerTriMat<T>& A);
RWLowerTriMat<T>&   operator==(const
RWLowerTriMat<T>& A); RWLowerTriMat<T>& operator!=(const
RWLowerTriMat<T>& A);
RWLowerTriMat<T>&    operator*=(T x);
RWLowerTriMat<T>&    operator/=(T x);
RWLowerTriMat<T>&   operator+=(const
RWLowerTriMat<T>& A); RWLowerTriMat<T>& operator-=(const
RWLowerTriMat<T>& A); RWLowerTriMat<T>& operator*=(const
RWLowerTriMat<T>& A); RWLowerTriMat<T>& operator/=(const
RWLowerTriMat<T>& A);

Global Operators

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

Global Functions

RWLowerTriMat<T>
abs(const RWLowerTriMat<T>&);
RWLowerTriMat<double>
arg(const RWLowerTriMat<DComplex>& A);
RWLowerTriMat<DComplex>
conj(const RWLowerTriMat<DComplex>& A);
RWLowerTriMat<double>
imag(const RWLowerTriMat<DComplex>& A);
double
maxValue(const RWLowerTriMat<double>&);
float
maxValue(const RWLowerTriMat<float>&);
double
minValue(const RWLowerTriMat<double>&);
float
minValue(const RWLowerTriMat<float>&);
RWLowerTriMat<double>
norm(const RWLowerTriMat<DComplex>& A);
RWMathVec<T>
product(const RWLowerTriMat<T>& A, 
const RWMathVec<T>& x);
RWMathVec<T>
product(const RWMathVec<T>& x, 
const RWLowerTriMat<T>& A);
RWLowerTriMat<double>
real(const RWLowerTriMat<DComplex>& A);
RWLowerTriMat<float>
toFloat(const RWLowerTriMat<double>&);
RWLowerTriMat<T>
toLowerTriMat(const RWGenMat<T>&);
RWUpperTriMat<T>
transpose(const RWLowerTriMat<T>&);


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.