10 #ifndef STOKHOS_JACOBIPRECONDITIONER_HPP
11 #define STOKHOS_JACOBIPRECONDITIONER_HPP
19 template <
typename ordinal_type,
typename value_type>
42 z(i,0)=Input(i,0)/
A(i,i);
51 G(i,
j)=-
A(i,
j)/
A(i,i);
71 #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