tmath::sparse::SparseSolver Class Reference

The base class for sparse solvers. It provides a unified interface which can be used by generic algorithms. More...

#include <sparsesolver.hpp>

Inheritance diagram for tmath::sparse::SparseSolver:

Inheritance graph
[legend]
Collaboration diagram for tmath::sparse::SparseSolver:

Collaboration graph
[legend]

List of all members.

Public Types

typedef double TScalar
typedef Eigen::SparseMatrix
< TScalar,
Eigen::LowerTriangular > 
TSparseLowerMatrix
typedef Eigen::SparseMatrix
< TScalar,
Eigen::LowerTriangular|Eigen::SelfAdjoint > 
TSparseLowerSelfAdjointMatrix
typedef Eigen::SparseMatrix
< TScalar > 
TSparseMatrix
typedef Eigen::SparseMatrix
< TScalar, Eigen::SelfAdjoint > 
TSparseSelfAdjointMatrix
typedef Eigen::SparseMatrix
< TScalar,
Eigen::UpperTriangular > 
TSparseUpperMatrix
typedef Eigen::SparseMatrix
< TScalar,
Eigen::UpperTriangular|Eigen::SelfAdjoint > 
TSparseUpperSelfAdjointMatrix

Public Member Functions

virtual bool Compute (SymSparseMatrix &)
 computes the factorization, returns true if succeeded
virtual bool Compute (SparseMatrix &)
 computes the factorization, returns true if succeeded
virtual Matrix operator* (const Matrix &other)
 returns the matrix product A*B
void Solve (const Matrix &b, Matrix **x, bool **success)
 Defines a wrapper for Solve() using pointers.
virtual bool Solve (const Matrix &b, Matrix &x)
virtual bool SolveInPlace (Matrix &b)
void SolveTransposed (const Matrix &b, Matrix **x, bool **success)
 Defines a wrapper for Solve() using pointers.
virtual bool SolveTransposed (const Matrix &b, Matrix &x)
 SparseSolver ()
 default constructor
virtual std::string typeIdent () const
 returns the name of the datatype
virtual ~SparseSolver ()
 destructor

Protected Member Functions

void Init ()
const bool & succeeded_factorization () const
bool & succeeded_factorization ()

Static Protected Member Functions

static SparseMatrix getSparseScalarMatrix ()
 creates and returns a dummy matrix to enable standard constructors

Protected Attributes

std::pair< int, int > m_dimensions
 dimensions of input object:
bool m_succeeded_factorization

Static Protected Attributes

static const SparseMatrix sparseScalarMatrix
 a dummy matrix to enable standard constructors


Detailed Description

The base class for sparse solvers. It provides a unified interface which can be used by generic algorithms.

Member Function Documentation

virtual bool tmath::sparse::SparseSolver::Solve ( const Matrix b,
Matrix x 
) [virtual]

Solves the given vector on return; returns true if succeeded

Reimplemented in tmath::sparse::SparseLLT, tmath::sparse::SparseLU, tmath::sparse::SparseSuperLU, tmath::sparse::SparseLUUmfPack, and tmath::sparse::MUMPS.

virtual bool tmath::sparse::SparseSolver::SolveInPlace ( Matrix b  )  [virtual]

Factorizes this matrix and solves the given vector in place; returns true if succeeded

Reimplemented in tmath::sparse::SparseLLT, tmath::sparse::SparseLowerLLT, tmath::sparse::SparseLLTCholmod, tmath::sparse::SparseLowerLLTCholmod, tmath::sparse::SparseLU, and tmath::sparse::MUMPS.

virtual bool tmath::sparse::SparseSolver::SolveTransposed ( const Matrix b,
Matrix x 
) [virtual]

Solves the system (transpose(Matrix)*x=b for x; returns true if succeeded

Reimplemented in tmath::sparse::MUMPS.


The documentation for this class was generated from the following file:

Generated on Wed Nov 17 17:36:01 2010 for 'tmath' Module Programming Interface by  doxygen 1.5.6