Class DiagonalPreconditioner

Class Documentation

class DiagonalPreconditioner

Simple preconditioner that approximates the matrix by a diagonal matrix.

Public Functions

DiagonalPreconditioner() = default

Default constructor

inline DiagonalPreconditioner(const CSRMatrix &A)

Constructs a diagonal preconditioner for the matrix A.

Parameters:

A

virtual ~DiagonalPreconditioner() = default
inline Vector rhs(const Vector &b) const

Returns the preconditioned right-hand-side \(P(b) = D(A)^{-1}b\).