42#ifndef THYRA_DIAGONAL_LINEAR_OP_BASE_HPP
43#define THYRA_DIAGONAL_LINEAR_OP_BASE_HPP
45#include "Thyra_LinearOpBase.hpp"
Interface class for for diagonal linear operators.
virtual Teuchos::RCP< const VectorBase< Scalar > > getDiag() const =0
Returns the const diagonal vector diag.
virtual bool isDiagConst() const =0
Returns true if the diagonal vector is const-only.
virtual Teuchos::RCP< VectorBase< Scalar > > getNonconstDiag()=0
Returns the non-const diagonal vector diag.
Base class for all linear operators.