10#ifndef THYRA_LINEAR_OP_DECL_HPP
11#define THYRA_LINEAR_OP_DECL_HPP
13#include "Thyra_OperatorVectorTypes.hpp"
14#include "Teuchos_Describable.hpp"
15#include "Teuchos_ExpandScalarTypeMacros.hpp"
16#include "Teuchos_PromotionTraits.hpp"
158template<
class Scalar>
261 const EOpTransp M_trans,
297 const EOpTransp M_trans,
320template<
class Scalar>
329template<
class Scalar>
338template<
class Scalar>
346template<
class Scalar>
355template<
class Scalar>
358 const EOpTransp M_trans,
361 const Scalar alpha =
static_cast<Scalar
>(1.0),
362 const Scalar beta =
static_cast<Scalar
>(0.0)
375 const EOpTransp M_trans,
378 const double alpha = 1.0,
379 const double beta = 0.0
391template<
class Scalar>
395 return ( is_null(M.
range()) || is_null(M.
domain()) );
399template<
class Scalar>
414template<
class Scalar>
429template<
class Scalar>
440 const EOpTransp M_trans,
Base class for all linear operators.
virtual bool opSupportedImpl(EOpTransp M_trans) const =0
Override in subclass.
bool isFullyInitialized(const LinearOpBase< Scalar > &M)
Determines if a linear operator is in the "Fully Initialized" state or not.
void apply(const LinearOpBase< Scalar > &M, const EOpTransp M_trans, const MultiVectorBase< Scalar > &X, const Ptr< MultiVectorBase< Scalar > > &Y, const Scalar alpha=static_cast< Scalar >(1.0), const Scalar beta=static_cast< Scalar >(0.0))
Non-member function call for M.apply(...).
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.
void apply(const LinearOpBase< double > &M, const EOpTransp M_trans, const MultiVectorBase< double > &X, const Ptr< MultiVectorBase< double > > &Y, const double alpha=1.0, const double beta=0.0)
Calls apply<double>(...).
bool opSupported(const LinearOpBase< Scalar > &M, EOpTransp M_trans)
Determines if an operation is supported for a single scalar type.
virtual RCP< const VectorSpaceBase< Scalar > > range() const =0
Return a smart pointer for the range space for this operator.
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.
bool isFullyUninitialized(const LinearOpBase< Scalar > &M)
Determines if a linear operator is in the "Fully Uninitialized" state or not.
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 opSupported(EOpTransp M_trans) const
Return if the M_trans operation of apply() is supported or not.
virtual RCP< const LinearOpBase< Scalar > > clone() const
Clone the linear operator object (if supported).
Interface for a collection of column vectors called a multi-vector.
NOTRANS
Type for the dimension of a vector space. `**/ typedef Teuchos::Ordinal Ordinal;.