45 #ifndef STOKHOS_JACOBIPRECONDITIONER_HPP
46 #define STOKHOS_JACOBIPRECONDITIONER_HPP
54 template <
typename ordinal_type,
typename value_type>
77 z(i,0)=Input(i,0)/
A(i,i);
86 G(i,
j)=-
A(i,
j)/
A(i,i);
106 #endif // STOKHOS_JACOBIPRECONDITIONER_HPP
JacobiPreconditioner(const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &A_)
Constructor.
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...
int multiply(ETransp transa, ETransp transb, ScalarType alpha, const SerialDenseMatrix< OrdinalType, ScalarType > &A, const SerialDenseMatrix< OrdinalType, ScalarType > &B, ScalarType beta)
const Teuchos::SerialDenseMatrix< ordinal_type, value_type > & A
virtual ~JacobiPreconditioner()
Destructor.
SerialDenseMatrix< OrdinalType, ScalarType > & assign(const SerialDenseMatrix< OrdinalType, ScalarType > &Source)
OrdinalType numRows() const