42 #ifndef THYRA_DEFAULT_ADDED_LINEAR_OP_DECL_HPP 43 #define THYRA_DEFAULT_ADDED_LINEAR_OP_DECL_HPP 46 #include "Thyra_AddedLinearOpBase.hpp" 47 #include "Teuchos_ConstNonconstObjectContainer.hpp" 84 template<
class Scalar>
241 std::vector<Teuchos::ConstNonconstObjectContainer<LinearOpBase<Scalar> > > Ops_;
243 inline void assertInitialized()
const;
244 inline std::string getClassName()
const;
245 inline Ordinal getRangeDim()
const;
246 inline Ordinal getDomainDim()
const;
249 void setupDefaultObjectLabel();
259 template<
class Scalar>
262 defaultAddedLinearOp()
269 template<
class Scalar>
279 template<
class Scalar>
292 template<
class Scalar>
297 const std::string &label =
"" 305 template<
class Scalar>
310 const std::string &label =
"" 318 template<
class Scalar>
323 const std::string &label =
"" 331 template<
class Scalar>
336 const std::string &label =
"" 343 #endif // THYRA_DEFAULT_ADDED_LINEAR_OP_DECL_HPP RCP< LinearOpBase< Scalar > > nonconstAdd(const RCP< LinearOpBase< Scalar > > &A, const RCP< LinearOpBase< Scalar > > &B, const std::string &label="")
Form an implicit addition of two linear operators: M = A + B.
RCP< LinearOpBase< Scalar > > nonconstSubtract(const RCP< LinearOpBase< Scalar > > &A, const RCP< LinearOpBase< Scalar > > &B, const std::string &label="")
Form an implicit subtraction of two linear operators: M = A - B.
bool opIsConst(const int k) const
RCP< const LinearOpBase< Scalar > > getOp(const int k) const
EOpTransp
Enumeration for determining how a linear operator is applied. `*.
RCP< const LinearOpBase< Scalar > > clone() const
RCP< const VectorSpaceBase< Scalar > > domain() const
Returns this->getOp(this->numOps()-1).domain() if <t>this->numOps() > 0 and returns Teuchos::null oth...
Interface class for implicitly added linear operators.
Concrete composite LinearOpBase subclass that creates an implicitly added linear operator out of one ...
RCP< const VectorSpaceBase< Scalar > > range() const
Returns this->getOp(0).range() if <t>this->numOps() > 0 and returns Teuchos::null otherwise...
DefaultAddedLinearOp()
Constructs to uninitialized.
Teuchos::Ordinal Ordinal
Type for the dimension of a vector space. `*.
RCP< const LinearOpBase< Scalar > > add(const RCP< const LinearOpBase< Scalar > > &A, const RCP< const LinearOpBase< Scalar > > &B, const std::string &label="")
Form an implicit addition of two linear operators: M = A + B.
Interface for a collection of column vectors called a multi-vector.
RCP< const LinearOpBase< Scalar > > subtract(const RCP< const LinearOpBase< Scalar > > &A, const RCP< const LinearOpBase< Scalar > > &B, const std::string &label="")
Form an implicit subtraction of two linear operators: M = A - B.
void applyImpl(const EOpTransp M_trans, const MultiVectorBase< Scalar > &X, const Ptr< MultiVectorBase< Scalar > > &Y, const Scalar alpha, const Scalar beta) const
void initialize(const ArrayView< const RCP< LinearOpBase< Scalar > > > &Ops)
Initialize given a list of non-const linear operators.
RCP< LinearOpBase< Scalar > > getNonconstOp(const int k)
void uninitialize()
Set to uninitialized.
bool opSupportedImpl(EOpTransp M_trans) const
Returns true only if all constituent operators support M_trans.
Base class for all linear operators.
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
Prints the details about the constituent linear operators.
std::string description() const
Prints just the name DefaultAddedLinearOp along with the overall dimensions and the number of constit...