46 #ifndef STOKHOS_DIAGPRECONDITIONER_HPP 47 #define STOKHOS_DIAGPRECONDITIONER_HPP 49 #include "Teuchos_RCP.hpp" 51 #include "Teuchos_SerialDenseMatrix.hpp" 55 template <
typename ordinal_type,
typename value_type>
62 const Teuchos::SerialDenseMatrix<ordinal_type, value_type>& A_) :
A(A_) {}
68 const Teuchos::SerialDenseMatrix<ordinal_type, value_type>& Input,
69 Teuchos::SerialDenseMatrix<ordinal_type, value_type>& Result,
73 Result(i,0)=Input(i,0)/
A(i,i);
79 const Teuchos::SerialDenseMatrix<ordinal_type, value_type>&
A;
84 #endif // STOKHOS_DIAGPRECONDITIONER_HPP virtual ordinal_type ApplyInverse(const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &Input, Teuchos::SerialDenseMatrix< ordinal_type, value_type > &Result, ordinal_type m) const
Returns the result of a Operator inverse applied to a Teuchos::SerialDenseMatrix Input in Result...
DiagPreconditioner(const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &A_)
Constructor.
virtual ~DiagPreconditioner()
Destructor.
Top-level namespace for Stokhos classes and functions.
const Teuchos::SerialDenseMatrix< ordinal_type, value_type > & A