Belos Version of the Day
Loading...
Searching...
No Matches
List of all members
Belos::TeuchosDenseSolver< ScalarType > Class Template Reference

Full specialization of Belos::DenseSolver for Teuchos::SerialDenseMatrix<int,ST>. More...

#include <BelosTeuchosDenseAdapter.hpp>

Inheritance diagram for Belos::TeuchosDenseSolver< ScalarType >:
Inheritance graph
[legend]

Public Member Functions

Constructor/Destructor Methods
 TeuchosDenseSolver ()
 Default constructor; matrix should be set using setMatrix(), LHS and RHS set with setVectors().
 
virtual ~TeuchosDenseSolver ()
 TeuchosDenseSolver destructor.
 
- Public Member Functions inherited from Belos::DenseSolver< ScalarType, Teuchos::SerialDenseMatrix< int, ScalarType > >
 DenseSolver ()
 Default constructor; matrix should be set using setMatrix(), LHS and RHS set with setVectors().
 
virtual ~DenseSolver ()
 SerialDenseSolver destructor.
 
virtual int setMatrix (const Teuchos::RCP< Teuchos::SerialDenseMatrix< int, ScalarType > > &A)
 Sets the pointers for coefficient matrix.
 
virtual int setVectors (const Teuchos::RCP< Teuchos::SerialDenseMatrix< int, ScalarType > > &X, const Teuchos::RCP< Teuchos::SerialDenseMatrix< int, ScalarType > > &B)
 Sets the pointers for left and right hand side vector(s).
 
void setSPD (bool flag)
 Set if dense matrix is symmetric positive definite.
 
void factorWithEquilibration (bool flag)
 Causes equilibration to be called just before the matrix factorization as part of the call to factor.
 
void solveWithTransposeFlag (Teuchos::ETransp trans)
 All subsequent function calls will work with the transpose-type set by this method (Teuchos::NO_TRANS, Teuchos::TRANS, and Teuchos::CONJ_TRANS).
 

Factor/Solve Methods

int factor ()
 Computes the in-place LU factorization of the matrix.
 
int solve ()
 Computes the solution X to AX = B for the this matrix and the B provided.
 

Additional Inherited Members

- Protected Attributes inherited from Belos::DenseSolver< ScalarType, Teuchos::SerialDenseMatrix< int, ScalarType > >
bool spd_
 
bool equilibrate_
 
Teuchos::ETransp TRANS_
 
bool newMatrix_
 
Teuchos::RCP< Teuchos::SerialDenseMatrix< int, ScalarType > > A_
 
Teuchos::RCP< Teuchos::SerialDenseMatrix< int, ScalarType > > X_
 
Teuchos::RCP< Teuchos::SerialDenseMatrix< int, ScalarType > > B_
 

Detailed Description

template<class ScalarType>
class Belos::TeuchosDenseSolver< ScalarType >

Full specialization of Belos::DenseSolver for Teuchos::SerialDenseMatrix<int,ST>.

Definition at line 31 of file BelosTeuchosDenseAdapter.hpp.

Constructor & Destructor Documentation

◆ TeuchosDenseSolver()

template<class ScalarType >
Belos::TeuchosDenseSolver< ScalarType >::TeuchosDenseSolver ( )
inline

Default constructor; matrix should be set using setMatrix(), LHS and RHS set with setVectors().

Definition at line 38 of file BelosTeuchosDenseAdapter.hpp.

◆ ~TeuchosDenseSolver()

TeuchosDenseSolver destructor.

Definition at line 41 of file BelosTeuchosDenseAdapter.hpp.

Member Function Documentation

◆ factor()

template<class ScalarType >
int Belos::TeuchosDenseSolver< ScalarType >::factor ( )
inlinevirtual

Computes the in-place LU factorization of the matrix.

Returns
Integer error code, set to 0 if successful.

Implements Belos::DenseSolver< ScalarType, Teuchos::SerialDenseMatrix< int, ScalarType > >.

Definition at line 78 of file BelosTeuchosDenseAdapter.hpp.

◆ solve()

template<class ScalarType >
int Belos::TeuchosDenseSolver< ScalarType >::solve ( )
inlinevirtual

Computes the solution X to AX = B for the this matrix and the B provided.

Returns
Integer error code, set to 0 if successful.

Implements Belos::DenseSolver< ScalarType, Teuchos::SerialDenseMatrix< int, ScalarType > >.

Definition at line 121 of file BelosTeuchosDenseAdapter.hpp.


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

Generated for Belos by doxygen 1.9.8