Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Public Types | Protected Member Functions | Protected Attributes | Private Member Functions
Teuchos::SerialDenseSolver< OrdinalType, ScalarType > Class Template Reference

A class for solving dense linear problems. More...

#include <Teuchos_SerialDenseSolver.hpp>

Inheritance diagram for Teuchos::SerialDenseSolver< OrdinalType, ScalarType >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef Teuchos::ScalarTraits
< ScalarType >::magnitudeType 
MagnitudeType

Protected Member Functions

void allocateWORK ()
void resetMatrix ()
void resetVectors ()

Protected Attributes

bool equilibrate_
bool shouldEquilibrate_
bool equilibratedA_
bool equilibratedB_
bool transpose_
bool factored_
bool estimateSolutionErrors_
bool solutionErrorsEstimated_
bool solved_
bool inverted_
bool reciprocalConditionEstimated_
bool refineSolution_
bool solutionRefined_
Teuchos::ETransp TRANS_
OrdinalType M_
OrdinalType N_
OrdinalType Min_MN_
OrdinalType LDA_
OrdinalType LDAF_
OrdinalType INFO_
OrdinalType LWORK_
std::vector< OrdinalType > IPIV_
MagnitudeType ANORM_
MagnitudeType RCOND_
MagnitudeType ROWCND_
MagnitudeType COLCND_
MagnitudeType AMAX_
RCP< SerialDenseMatrix
< OrdinalType, ScalarType > > 
Matrix_
RCP< SerialDenseMatrix
< OrdinalType, ScalarType > > 
LHS_
RCP< SerialDenseMatrix
< OrdinalType, ScalarType > > 
RHS_
RCP< SerialDenseMatrix
< OrdinalType, ScalarType > > 
Factor_
ScalarType * A_
ScalarType * AF_
std::vector< MagnitudeTypeFERR_
std::vector< MagnitudeTypeBERR_
std::vector< ScalarType > WORK_
std::vector< MagnitudeTypeR_
std::vector< MagnitudeTypeC_

Private Member Functions

 SerialDenseSolver (const SerialDenseSolver< OrdinalType, ScalarType > &Source)
SerialDenseSolveroperator= (const SerialDenseSolver< OrdinalType, ScalarType > &Source)

Constructor/Destructor Methods

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

Set Methods

int setMatrix (const RCP< SerialDenseMatrix< OrdinalType, ScalarType > > &A)
 Sets the pointers for coefficient matrix.
int setVectors (const RCP< SerialDenseMatrix< OrdinalType, ScalarType > > &X, const RCP< SerialDenseMatrix< OrdinalType, ScalarType > > &B)
 Sets the pointers for left and right hand side vector(s).

Strategy Modifying Methods

void factorWithEquilibration (bool flag)
 Causes equilibration to be called just before the matrix factorization as part of the call to factor.
void solveWithTranspose (bool flag)
 If flag is true, causes all subsequent function calls to work with the transpose of this matrix, otherwise not.
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).
void solveToRefinedSolution (bool flag)
 Causes all solves to compute solution to best ability using iterative refinement.
void estimateSolutionErrors (bool flag)
 Causes all solves to estimate the forward and backward solution error.

Factor/Solve/Invert Methods

int factor ()
 Computes the in-place LU factorization of the matrix using the LAPACK routine _GETRF.
int solve ()
 Computes the solution X to AX = B for the this matrix and the B provided to SetVectors()..
int invert ()
 Inverts the this matrix.
int computeEquilibrateScaling ()
 Computes the scaling vector S(i) = 1/sqrt(A(i,i)) of the this matrix.
int equilibrateMatrix ()
 Equilibrates the this matrix.
int equilibrateRHS ()
 Equilibrates the current RHS.
int applyRefinement ()
 Apply Iterative Refinement.
int unequilibrateLHS ()
 Unscales the solution vectors if equilibration was used to solve the system.
int reciprocalConditionEstimate (MagnitudeType &Value)
 Returns the reciprocal of the 1-norm condition number of the this matrix.

Query methods

bool transpose ()
 Returns true if transpose of this matrix has and will be used.
bool factored ()
 Returns true if matrix is factored (factor available via getFactoredMatrix()).
bool equilibratedA ()
 Returns true if factor is equilibrated (factor available via getFactoredMatrix()).
bool equilibratedB ()
 Returns true if RHS is equilibrated (RHS available via getRHS()).
bool shouldEquilibrate ()
 Returns true if the LAPACK general rules for equilibration suggest you should equilibrate the system.
bool solutionErrorsEstimated ()
 Returns true if forward and backward error estimated have been computed (available via FERR() and BERR()).
bool inverted ()
 Returns true if matrix inverse has been computed (inverse available via getFactoredMatrix()).
bool reciprocalConditionEstimated ()
 Returns true if the condition number of the this matrix has been computed (value available via ReciprocalConditionEstimate()).
bool solved ()
 Returns true if the current set of vectors has been solved.
bool solutionRefined ()
 Returns true if the current set of vectors has been refined.

Data Accessor methods

RCP< SerialDenseMatrix
< OrdinalType, ScalarType > > 
getMatrix () const
 Returns pointer to current matrix.
RCP< SerialDenseMatrix
< OrdinalType, ScalarType > > 
getFactoredMatrix () const
 Returns pointer to factored matrix (assuming factorization has been performed).
RCP< SerialDenseMatrix
< OrdinalType, ScalarType > > 
getLHS () const
 Returns pointer to current LHS.
RCP< SerialDenseMatrix
< OrdinalType, ScalarType > > 
getRHS () const
 Returns pointer to current RHS.
OrdinalType numRows () const
 Returns row dimension of system.
OrdinalType numCols () const
 Returns column dimension of system.
std::vector< OrdinalType > IPIV () const
 Returns pointer to pivot vector (if factorization has been computed), zero otherwise.
MagnitudeType ANORM () const
 Returns the 1-Norm of the this matrix (returns -1 if not yet computed).
MagnitudeType RCOND () const
 Returns the reciprocal of the condition number of the this matrix (returns -1 if not yet computed).
MagnitudeType ROWCND () const
 Ratio of smallest to largest row scale factors for the this matrix (returns -1 if not yet computed).
MagnitudeType COLCND () const
 Ratio of smallest to largest column scale factors for the this matrix (returns -1 if not yet computed).
MagnitudeType AMAX () const
 Returns the absolute value of the largest entry of the this matrix (returns -1 if not yet computed).
std::vector< MagnitudeTypeFERR () const
 Returns a pointer to the forward error estimates computed by LAPACK.
std::vector< MagnitudeTypeBERR () const
 Returns a pointer to the backward error estimates computed by LAPACK.
std::vector< MagnitudeTypeR () const
 Returns a pointer to the row scaling vector used for equilibration.
std::vector< MagnitudeTypeC () const
 Returns a pointer to the column scale vector used for equilibration.

I/O methods

void Print (std::ostream &os) const
 Print service methods; defines behavior of ostream << operator.

Detailed Description

template<typename OrdinalType, typename ScalarType>
class Teuchos::SerialDenseSolver< OrdinalType, ScalarType >

A class for solving dense linear problems.

The Teuchos::SerialDenseSolver class enables the definition, in terms of Teuchos::SerialDenseMatrix and Teuchos::SerialDenseVector objects, of a dense linear problem, followed by the solution of that problem via the most sophisticated techniques available in LAPACK.

The Teuchos::SerialDenseSolver class is intended to provide full-featured support for solving linear problems for general dense rectangular (or square) matrices. It is written on top of BLAS and LAPACK and thus has excellent performance and numerical capabilities. Using this class, one can either perform simple factorizations and solves or apply all the tricks available in LAPACK to get the best possible solution for very ill-conditioned problems.

Teuchos::SerialDenseSolver vs. Teuchos::LAPACK

The Teuchos::LAPACK class provides access to most of the same functionality as Teuchos::SerialDenseSolver. The primary difference is that Teuchos::LAPACK is a "thin" layer on top of LAPACK and Teuchos::SerialDenseSolver attempts to provide easy access to the more sophisticated aspects of solving dense linear and eigensystems.

Constructing Teuchos::SerialDenseSolver Objects

There is a single Teuchos::SerialDenseSolver constructor. However, the matrix, right hand side and solution vectors must be set prior to executing most methods in this class.

Setting vectors used for linear solves

The matrix A, the left hand side X and the right hand side B (when solving AX = B, for X), can be set by appropriate set methods. Each of these three objects must be an Teuchos::SerialDenseMatrix or and Teuchos::SerialDenseVector object. The set methods are as follows:

Vector and Utility Functions

Once a Teuchos::SerialDenseSolver is constructed, several mathematical functions can be applied to the object. Specifically:

Strategies for Solving Linear Systems In many cases, linear systems can be accurately solved by simply computing the LU factorization of the matrix and then performing a forward back solve with a given set of right hand side vectors. However, in some instances, the factorization may be very poorly conditioned and this simple approach may not work. In these situations, equilibration and iterative refinement may improve the accuracy, or prevent a breakdown in the factorization.

Teuchos::SerialDenseSolver will use equilibration with the factorization if, once the object is constructed and before it is factored, you call the function factorWithEquilibration(true) to force equilibration to be used. If you are uncertain if equilibration should be used, you may call the function shouldEquilibrate() which will return true if equilibration could possibly help. shouldEquilibrate() uses guidelines specified in the LAPACK User Guide, namely if SCOND < 0.1 and AMAX < Underflow or AMAX > Overflow, to determine if equilibration might be useful.

Teuchos::SerialDenseSolver will use iterative refinement after a forward/back solve if you call solveToRefinedSolution(true). It will also compute forward and backward error estimates if you call estimateSolutionErrors(true). Access to the forward (back) error estimates is available via FERR() (BERR()).

Examples using Teuchos::SerialDenseSolver can be found in the Teuchos test directories.

Definition at line 137 of file Teuchos_SerialDenseSolver.hpp.


Member Typedef Documentation

template<typename OrdinalType, typename ScalarType>
typedef Teuchos::ScalarTraits<ScalarType>::magnitudeType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::MagnitudeType

Reimplemented from Teuchos::BLAS< OrdinalType, ScalarType >.

Definition at line 143 of file Teuchos_SerialDenseSolver.hpp.


Constructor & Destructor Documentation

template<typename OrdinalType , typename ScalarType >
Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::SerialDenseSolver ( )

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

Definition at line 456 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::~SerialDenseSolver ( ) [virtual]

SerialDenseSolver destructor.

Definition at line 493 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::SerialDenseSolver ( const SerialDenseSolver< OrdinalType, ScalarType > &  Source) [private]

Member Function Documentation

template<typename OrdinalType , typename ScalarType >
int Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::setMatrix ( const RCP< SerialDenseMatrix< OrdinalType, ScalarType > > &  A)

Sets the pointers for coefficient matrix.

Definition at line 538 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
int Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::setVectors ( const RCP< SerialDenseMatrix< OrdinalType, ScalarType > > &  X,
const RCP< SerialDenseMatrix< OrdinalType, ScalarType > > &  B 
)

Sets the pointers for left and right hand side vector(s).

Row dimension of X must match column dimension of matrix A, row dimension of B must match row dimension of A. X and B must have the same dimensions.

Definition at line 555 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
void Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::factorWithEquilibration ( bool  flag) [inline]

Causes equilibration to be called just before the matrix factorization as part of the call to factor.

Note:
This method must be called before the factorization is performed, otherwise it will have no effect.

Definition at line 189 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
void Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::solveWithTranspose ( bool  flag) [inline]

If flag is true, causes all subsequent function calls to work with the transpose of this matrix, otherwise not.

Note:
This interface will not work correctly for complex-valued linear systems, use solveWithTransposeFlag().

Definition at line 194 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
void Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::solveWithTransposeFlag ( Teuchos::ETransp  trans) [inline]

All subsequent function calls will work with the transpose-type set by this method (Teuchos::NO_TRANS, Teuchos::TRANS, and Teuchos::CONJ_TRANS).

Note:
This interface will allow correct behavior for complex-valued linear systems, solveWithTranspose() will not.

Definition at line 199 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
void Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::solveToRefinedSolution ( bool  flag) [inline]

Causes all solves to compute solution to best ability using iterative refinement.

Note:
This method must be called before the factorization is performed, otherwise it will have no effect.

Definition at line 204 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
void Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::estimateSolutionErrors ( bool  flag)

Causes all solves to estimate the forward and backward solution error.

Note:
Error estimates will be in the arrays FERR and BERR, resp, after the solve step is complete. These arrays are accessible via the FERR() and BERR() access functions. This method must be called before the factorization is performed, otherwise it will have no effect.

Definition at line 578 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
int Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::factor ( )

Computes the in-place LU factorization of the matrix using the LAPACK routine _GETRF.

Returns:
Integer error code, set to 0 if successful.

Definition at line 588 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
int Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::solve ( )

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

Returns:
Integer error code, set to 0 if successful.

Definition at line 648 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
int Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::invert ( )

Inverts the this matrix.

Returns:
Integer error code, set to 0 if successful. Otherwise returns the LAPACK error code INFO.

Definition at line 886 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
int Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::computeEquilibrateScaling ( )

Computes the scaling vector S(i) = 1/sqrt(A(i,i)) of the this matrix.

Returns:
Integer error code, set to 0 if successful. Otherwise returns the LAPACK error code INFO.

Definition at line 765 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
int Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::equilibrateMatrix ( )

Equilibrates the this matrix.

Note:
This method will be called automatically in solve() method if factorWithEquilibration( true ) is called.
Returns:
Integer error code, set to 0 if successful. Otherwise returns the LAPACK error code INFO.

Definition at line 786 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
int Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::equilibrateRHS ( )

Equilibrates the current RHS.

Note:
This method will be called automatically in solve() method if factorWithEquilibration( true ) is called.
Returns:
Integer error code, set to 0 if successful. Otherwise returns the LAPACK error code INFO.

Definition at line 829 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
int Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::applyRefinement ( )

Apply Iterative Refinement.

Note:
This method will be called automatically in solve() method if solveToRefinedSolution( true ) is called.
Returns:
Integer error code, set to 0 if successful. Otherwise returns the LAPACK error code INFO.

Definition at line 731 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
int Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::unequilibrateLHS ( )

Unscales the solution vectors if equilibration was used to solve the system.

Note:
This method will be called automatically in solve() method if factorWithEquilibration( true ) is called.
Returns:
Integer error code, set to 0 if successful. Otherwise returns the LAPACK error code INFO.

Definition at line 860 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
int Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::reciprocalConditionEstimate ( MagnitudeType Value)

Returns the reciprocal of the 1-norm condition number of the this matrix.

Parameters:
ValueOut On return contains the reciprocal of the 1-norm condition number of the this matrix.
Returns:
Integer error code, set to 0 if successful. Otherwise returns the LAPACK error code INFO.

Definition at line 929 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::transpose ( ) [inline]

Returns true if transpose of this matrix has and will be used.

Definition at line 283 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::factored ( ) [inline]

Returns true if matrix is factored (factor available via getFactoredMatrix()).

Definition at line 286 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::equilibratedA ( ) [inline]

Returns true if factor is equilibrated (factor available via getFactoredMatrix()).

Definition at line 289 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::equilibratedB ( ) [inline]

Returns true if RHS is equilibrated (RHS available via getRHS()).

Definition at line 292 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::shouldEquilibrate ( ) [inline]

Returns true if the LAPACK general rules for equilibration suggest you should equilibrate the system.

Definition at line 295 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::solutionErrorsEstimated ( ) [inline]

Returns true if forward and backward error estimated have been computed (available via FERR() and BERR()).

Definition at line 298 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::inverted ( ) [inline]

Returns true if matrix inverse has been computed (inverse available via getFactoredMatrix()).

Definition at line 301 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::reciprocalConditionEstimated ( ) [inline]

Returns true if the condition number of the this matrix has been computed (value available via ReciprocalConditionEstimate()).

Definition at line 304 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::solved ( ) [inline]

Returns true if the current set of vectors has been solved.

Definition at line 307 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::solutionRefined ( ) [inline]

Returns true if the current set of vectors has been refined.

Definition at line 310 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
RCP<SerialDenseMatrix<OrdinalType, ScalarType> > Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::getMatrix ( ) const [inline]

Returns pointer to current matrix.

Definition at line 317 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
RCP<SerialDenseMatrix<OrdinalType, ScalarType> > Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::getFactoredMatrix ( ) const [inline]

Returns pointer to factored matrix (assuming factorization has been performed).

Definition at line 320 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
RCP<SerialDenseMatrix<OrdinalType, ScalarType> > Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::getLHS ( ) const [inline]

Returns pointer to current LHS.

Definition at line 323 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
RCP<SerialDenseMatrix<OrdinalType, ScalarType> > Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::getRHS ( ) const [inline]

Returns pointer to current RHS.

Definition at line 326 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
OrdinalType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::numRows ( ) const [inline]

Returns row dimension of system.

Definition at line 329 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
OrdinalType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::numCols ( ) const [inline]

Returns column dimension of system.

Definition at line 332 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
std::vector<OrdinalType> Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::IPIV ( ) const [inline]

Returns pointer to pivot vector (if factorization has been computed), zero otherwise.

Definition at line 335 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
MagnitudeType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::ANORM ( ) const [inline]

Returns the 1-Norm of the this matrix (returns -1 if not yet computed).

Definition at line 338 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
MagnitudeType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::RCOND ( ) const [inline]

Returns the reciprocal of the condition number of the this matrix (returns -1 if not yet computed).

Definition at line 341 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
MagnitudeType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::ROWCND ( ) const [inline]

Ratio of smallest to largest row scale factors for the this matrix (returns -1 if not yet computed).

If ROWCND() is >= 0.1 and AMAX() is not close to overflow or underflow, then equilibration is not needed.

Definition at line 346 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
MagnitudeType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::COLCND ( ) const [inline]

Ratio of smallest to largest column scale factors for the this matrix (returns -1 if not yet computed).

If COLCND() is >= 0.1 then equilibration is not needed.

Definition at line 351 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
MagnitudeType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::AMAX ( ) const [inline]

Returns the absolute value of the largest entry of the this matrix (returns -1 if not yet computed).

Definition at line 354 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
std::vector<MagnitudeType> Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::FERR ( ) const [inline]

Returns a pointer to the forward error estimates computed by LAPACK.

Definition at line 357 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
std::vector<MagnitudeType> Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::BERR ( ) const [inline]

Returns a pointer to the backward error estimates computed by LAPACK.

Definition at line 360 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
std::vector<MagnitudeType> Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::R ( ) const [inline]

Returns a pointer to the row scaling vector used for equilibration.

Definition at line 363 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
std::vector<MagnitudeType> Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::C ( ) const [inline]

Returns a pointer to the column scale vector used for equilibration.

Definition at line 366 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
void Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::Print ( std::ostream &  os) const

Print service methods; defines behavior of ostream << operator.

Definition at line 962 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
void Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::allocateWORK ( ) [inline, protected]

Definition at line 376 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
void Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::resetMatrix ( ) [protected]

Definition at line 512 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType , typename ScalarType >
void Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::resetVectors ( ) [protected]

Definition at line 499 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
SerialDenseSolver& Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::operator= ( const SerialDenseSolver< OrdinalType, ScalarType > &  Source) [private]

Member Data Documentation

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::equilibrate_ [protected]

Definition at line 381 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::shouldEquilibrate_ [protected]

Definition at line 382 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::equilibratedA_ [protected]

Definition at line 383 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::equilibratedB_ [protected]

Definition at line 384 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::transpose_ [protected]

Definition at line 385 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::factored_ [protected]

Definition at line 386 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::estimateSolutionErrors_ [protected]

Definition at line 387 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::solutionErrorsEstimated_ [protected]

Definition at line 388 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::solved_ [protected]

Definition at line 389 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::inverted_ [protected]

Definition at line 390 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::reciprocalConditionEstimated_ [protected]

Definition at line 391 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::refineSolution_ [protected]

Definition at line 392 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
bool Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::solutionRefined_ [protected]

Definition at line 393 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
Teuchos::ETransp Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::TRANS_ [protected]

Definition at line 395 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
OrdinalType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::M_ [protected]

Definition at line 397 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
OrdinalType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::N_ [protected]

Definition at line 398 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
OrdinalType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::Min_MN_ [protected]

Definition at line 399 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
OrdinalType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::LDA_ [protected]

Definition at line 400 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
OrdinalType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::LDAF_ [protected]

Definition at line 401 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
OrdinalType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::INFO_ [protected]

Definition at line 402 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
OrdinalType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::LWORK_ [protected]

Definition at line 403 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
std::vector<OrdinalType> Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::IPIV_ [protected]

Definition at line 405 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
MagnitudeType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::ANORM_ [protected]

Definition at line 407 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
MagnitudeType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::RCOND_ [protected]

Definition at line 408 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
MagnitudeType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::ROWCND_ [protected]

Definition at line 409 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
MagnitudeType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::COLCND_ [protected]

Definition at line 410 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
MagnitudeType Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::AMAX_ [protected]

Definition at line 411 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
RCP<SerialDenseMatrix<OrdinalType, ScalarType> > Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::Matrix_ [protected]

Definition at line 413 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
RCP<SerialDenseMatrix<OrdinalType, ScalarType> > Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::LHS_ [protected]

Definition at line 414 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
RCP<SerialDenseMatrix<OrdinalType, ScalarType> > Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::RHS_ [protected]

Definition at line 415 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
RCP<SerialDenseMatrix<OrdinalType, ScalarType> > Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::Factor_ [protected]

Definition at line 416 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
ScalarType* Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::A_ [protected]

Definition at line 418 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
ScalarType* Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::AF_ [protected]

Definition at line 419 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
std::vector<MagnitudeType> Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::FERR_ [protected]

Definition at line 420 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
std::vector<MagnitudeType> Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::BERR_ [protected]

Definition at line 421 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
std::vector<ScalarType> Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::WORK_ [protected]

Definition at line 422 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
std::vector<MagnitudeType> Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::R_ [protected]

Definition at line 423 of file Teuchos_SerialDenseSolver.hpp.

template<typename OrdinalType, typename ScalarType>
std::vector<MagnitudeType> Teuchos::SerialDenseSolver< OrdinalType, ScalarType >::C_ [protected]

Definition at line 424 of file Teuchos_SerialDenseSolver.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines