42 #ifndef THYRA_LINEAR_OP_DECL_HPP 43 #define THYRA_LINEAR_OP_DECL_HPP 45 #include "Thyra_OperatorVectorTypes.hpp" 46 #include "Teuchos_Describable.hpp" 47 #include "Teuchos_ExpandScalarTypeMacros.hpp" 48 #include "Teuchos_PromotionTraits.hpp" 190 template<
class Scalar>
352 template<
class Scalar>
361 template<
class Scalar>
370 template<
class Scalar>
378 template<
class Scalar>
387 template<
class Scalar>
393 const Scalar alpha = static_cast<Scalar>(1.0),
394 const Scalar beta = static_cast<Scalar>(0.0)
410 const double alpha = 1.0,
411 const double beta = 0.0
423 template<
class Scalar>
431 template<
class Scalar>
446 template<
class Scalar>
461 template<
class Scalar>
479 apply<double>(M, M_trans, X, Y, alpha, beta);
483 #endif // THYRA_LINEAR_OP_DECL_HPP virtual bool opSupportedImpl(EOpTransp M_trans) const =0
Override in subclass.
bool is_null(const boost::shared_ptr< T > &p)
virtual RCP< const VectorSpaceBase< Scalar > > range() const =0
Return a smart pointer for the range space for this operator.
EOpTransp
Enumeration for determining how a linear operator is applied. `*.
virtual void applyImpl(const EOpTransp M_trans, const MultiVectorBase< Scalar > &X, const Ptr< MultiVectorBase< Scalar > > &Y, const Scalar alpha, const Scalar beta) const =0
Override in subclass.
Use the non-transposed operator.
Use the transposed operator with complex-conjugate clements (same as TRANS for real scalar types)...
Use the non-transposed operator with complex-conjugate elements (same as NOTRANS for real scalar type...
Use the transposed operator.
Interface for a collection of column vectors called a multi-vector.
bool opSupported(EOpTransp M_trans) const
Return if the M_trans operation of apply() is supported or not.
Base class for all linear operators.
bool isPartiallyInitialized(const LinearOpBase< Scalar > &M)
Determines if a linear operator is in the "Partially Initialized" state or not.
virtual RCP< const VectorSpaceBase< Scalar > > domain() const =0
Return a smart pointer for the domain space for this operator.
bool isFullyUninitialized(const LinearOpBase< Scalar > &M)
Determines if a linear operator is in the "Fully Uninitialized" state or not.
void apply(const EOpTransp M_trans, const MultiVectorBase< Scalar > &X, const Ptr< MultiVectorBase< Scalar > > &Y, const Scalar alpha, const Scalar beta) const
Apply the linear operator to a multi-vector : Y = alpha*op(M)*X + beta*Y.
virtual RCP< const LinearOpBase< Scalar > > clone() const
Clone the linear operator object (if supported).
bool isFullyInitialized(const LinearOpBase< Scalar > &M)
Determines if a linear operator is in the "Fully Initialized" state or not.