Belos Version of the Day
Loading...
Searching...
No Matches
Belos::KokkosDenseSolver< Scalar, DM > Class Template Reference

Full specialization of Belos::DenseMatSolver for Kokkos::DualView. More...

#include <BelosKokkosDenseAdapter.hpp>

Inheritance diagram for Belos::KokkosDenseSolver< Scalar, DM >:

Public Types

typedef KokkosKernels::ArithTraits< Scalar >::val_type IST
typedef DenseMatTraits< Scalar, DM > DMT

Public Member Functions

Constructor/Destructor Methods
 KokkosDenseSolver ()
 Default constructor; matrix should be set using setMatrix(), LHS and RHS set with setVectors().
virtual ~KokkosDenseSolver ()
 KokkosDenseSolver destructor.
Public Member Functions inherited from Belos::DenseSolver< Scalar, DM >
 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< DM > &A)
 Sets the pointers for coefficient matrix.
virtual int setVectors (const Teuchos::RCP< DM > &X, const Teuchos::RCP< DM > &B)
 Sets the pointers for left and right hand side vector(s).
void setSPD (bool flag)
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

bool spd_
bool equilibrate_
Teuchos::ETransp TRANS_
bool newMatrix_
Teuchos::RCP< DM > A_
Teuchos::RCP< DM > X_
Teuchos::RCP< DM > B_

Detailed Description

template<class Scalar, class DM>
class Belos::KokkosDenseSolver< Scalar, DM >

Full specialization of Belos::DenseMatSolver for Kokkos::DualView.

Definition at line 49 of file BelosKokkosDenseAdapter.hpp.

Member Typedef Documentation

◆ IST

template<class Scalar, class DM>
typedef KokkosKernels::ArithTraits<Scalar>::val_type Belos::KokkosDenseSolver< Scalar, DM >::IST

Definition at line 52 of file BelosKokkosDenseAdapter.hpp.

◆ DMT

template<class Scalar, class DM>
typedef DenseMatTraits<Scalar, DM> Belos::KokkosDenseSolver< Scalar, DM >::DMT

Definition at line 53 of file BelosKokkosDenseAdapter.hpp.

Constructor & Destructor Documentation

◆ KokkosDenseSolver()

template<class Scalar, class DM>
Belos::KokkosDenseSolver< Scalar, DM >::KokkosDenseSolver ( )
inline

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

Definition at line 58 of file BelosKokkosDenseAdapter.hpp.

◆ ~KokkosDenseSolver()

template<class Scalar, class DM>
virtual Belos::KokkosDenseSolver< Scalar, DM >::~KokkosDenseSolver ( )
inlinevirtual

KokkosDenseSolver destructor.

Definition at line 61 of file BelosKokkosDenseAdapter.hpp.

Member Function Documentation

◆ factor()

template<class Scalar, class DM>
int Belos::KokkosDenseSolver< Scalar, DM >::factor ( )
inlinevirtual

Computes the in-place LU factorization of the matrix.

Returns
Integer error code, set to 0 if successful.

Implements Belos::DenseSolver< Scalar, DM >.

Definition at line 98 of file BelosKokkosDenseAdapter.hpp.

◆ solve()

template<class Scalar, class DM>
int Belos::KokkosDenseSolver< Scalar, DM >::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< Scalar, DM >.

Definition at line 176 of file BelosKokkosDenseAdapter.hpp.


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

Generated for Belos by doxygen 1.15.0