|
| TMatrix () |
| Create a matrix of size 0 x 0.
|
|
| TMatrix (int nrows, int ncols) |
| Create a matrix of logical size nrows x ncols. More...
|
|
| TMatrix (const TMatrix< MT > &m) |
| Create a matrix as a copy of another matrix. More...
|
|
virtual | ~TMatrix () |
| Destroy the matrix. More...
|
|
int | Dim (RC rc) const |
| Return a matrix dimension. More...
|
|
int | nRows () const |
| Return number of rows of the matrix. More...
|
|
int | nCols () const |
| Return number of columns of the matrix. More...
|
|
bool | isSparse () const |
| Return sparse storage flag. More...
|
|
bool | isFull () const |
| Return dense storage flag. More...
|
|
virtual MatrixStorage | StorageType () const =0 |
| Matrix storage class. More...
|
|
virtual void | New (int nrows, int ncols) |
| Resize and reset the matrix. More...
|
|
virtual MT | Get (int r, int c) const =0 |
| Retrieve a matrix element. More...
|
|
MT | operator() (int r, int c) const |
| Matrix element access (read only) More...
|
|
virtual TVector< MT > | Row (int r) const =0 |
| Returns a vector containing a copy of row `r'. More...
|
|
virtual void | SetRow (int r, const TVector< MT > &row) |
| Substitute a row of the matrix. More...
|
|
virtual int | SparseRow (int r, idxtype *colidx, MT *val) const =0 |
| Returns a row of the matrix in sparse format. More...
|
|
virtual TVector< MT > | Col (int c) const =0 |
| Returns a vector containing a copy of column 'c'. More...
|
|
virtual TVector< MT > | Diag () const |
| Returns the matrix diagonal as a vector. More...
|
|
virtual TVector< MT > | ColNorm () const |
| Returns vector of column norms. More...
|
|
virtual void | ColScale (const TVector< MT > &scale)=0 |
|
virtual void | RowScale (const TVector< MT > &scale)=0 |
|
virtual void | Unlink ()=0 |
|
virtual void | Ax (const TVector< MT > &x, TVector< MT > &b) const |
|
TVector< MT > | operator* (const TVector< MT > &x) const |
|
virtual void | ATx (const TVector< MT > &x, TVector< MT > &b) const |
|
TVector< MT > | ATx (const TVector< MT > &x) const |
|
virtual void | Transpone () |
|
virtual MT | RowMult (int r, MT *x) const |
|
void | Export (std::ostream &os) const |
| Write matrix to ASCII stream. More...
|
|
void | Print (std::ostream &os=std::cout, int n=80) const |
|
void | PrintNzeroGraph (char *fname) |
|
virtual int | pcg (const TVector< MT > &b, TVector< MT > &x, double &tol, TPreconditioner< MT > *precon=0, int maxit=0) const |
|
virtual void | pcg (const TVector< MT > *b, TVector< MT > *x, int nrhs, double tol, int maxit=0, TPreconditioner< MT > *precon=0, IterativeSolverResult *res=0) const |
|
virtual int | bicgstab (const TVector< MT > &b, TVector< MT > &x, double &tol, TPreconditioner< MT > *precon=0, int maxit=0) const |
|
virtual void | bicgstab (const TVector< MT > *b, TVector< MT > *x, int nrhs, double tol, int maxit=0, TPreconditioner< MT > *precon=0, IterativeSolverResult *res=0) const |
|
template<> |
int | pcg (const FVector &b, FVector &x, double &tol, TPreconditioner< float > *precon, int maxit) const |
|
template<> |
void | pcg (const FVector *b, FVector *x, int nrhs, double tol, int maxit, TPreconditioner< float > *precon, IterativeSolverResult *res) const |
|
template<> |
int | bicgstab (const FVector &b, FVector &x, double &tol, TPreconditioner< float > *precon, int maxit) const |
|
template<> |
void | bicgstab (const FVector *b, FVector *x, int nrhs, double tol, int maxit, TPreconditioner< float > *precon, IterativeSolverResult *res) const |
|
|
TSymMatrix< MT > | ATA (const TMatrix< MT > &A) |
| Return transp(*this) * *this as a symmetric matrix.
|
|
TSymMatrix< MT > | AAT (const TMatrix< MT > &A) |
|
TVector< MT > | ATA_diag (const TMatrix< MT > &A) |
|
int | PCG (const TMatrix< MT > &A, const TVector< MT > &b, TVector< MT > &x, double &tol, TPreconditioner< MT > *precon, int maxit) |
|
void | PCG (const TMatrix< MT > &A, const TVector< MT > *b, TVector< MT > *x, int nrhs, double tol, int maxit, TPreconditioner< MT > *precon, IterativeSolverResult *res) |
|
int | BiCGSTAB (const TMatrix< MT > &A, const TVector< MT > &b, TVector< MT > &x, double &tol, TPreconditioner< MT > *precon, int maxit) |
|
void | BiCGSTAB (const TMatrix< MT > &A, const TVector< MT > *b, TVector< MT > *x, int nrhs, double tol, int maxit, TPreconditioner< MT > *precon, IterativeSolverResult *res) |
|
std::ostream & | operator<< (std::ostream &os, const TMatrix< MT > &mat) |
|
template<class MT>
class TMatrix< MT >
Virtual base class for all matrix types (dense and sparse)
The following template types have been instantiated:
- TMatrix<double> (RMatrix)
- TMatrix<float> (FMatrix)
- TMatrix<complex> (CMatrix)
- TMatrix<scomplex> (SCMatrix)
- TMatrix<int> (IMatrix>