42 #ifndef THYRA_LINEAR_OP_SOURCE_BASE_HPP 43 #define THYRA_LINEAR_OP_SOURCE_BASE_HPP 45 #include "Thyra_SolveSupportTypes.hpp" 46 #include "Teuchos_Describable.hpp" 56 template<
class Scalar>
74 virtual Teuchos::RCP<LinearOpBase<Scalar> >
getNonconstOp() = 0;
79 virtual Teuchos::RCP<const LinearOpBase<Scalar> >
getOp()
const = 0;
87 #endif // THYRA_LINEAR_OP_SOURCE_BASE_HPP virtual Teuchos::RCP< LinearOpBase< Scalar > > getNonconstOp()=0
Return a non-const reference to the underlying linear operator.
Base interface for objects that can return a linear operator.
virtual Teuchos::RCP< const LinearOpBase< Scalar > > getOp() const =0
Return a const left preconditioner linear operator if one is designed or targeted to be applied on th...
virtual bool isOpConst() const =0
Return if the underlying linear operator is const-only or not.