10#ifndef THYRA_DEFAULT_ADDED_LINEAR_OP_DECL_HPP 
   11#define THYRA_DEFAULT_ADDED_LINEAR_OP_DECL_HPP 
   14#include "Thyra_AddedLinearOpBase.hpp" 
   15#include "Teuchos_ConstNonconstObjectContainer.hpp" 
  209  std::vector<Teuchos::ConstNonconstObjectContainer<LinearOpBase<Scalar> > >   Ops_;
 
  211  inline void assertInitialized() 
const;
 
  212  inline std::string getClassName() 
const;
 
  213  inline Ordinal getRangeDim() 
const;
 
  214  inline Ordinal getDomainDim() 
const;
 
  217  void setupDefaultObjectLabel();
 
 
  227template<
class Scalar>
 
  230defaultAddedLinearOp()
 
  237template<
class Scalar>
 
  239RCP<DefaultAddedLinearOp<Scalar> >
 
  240defaultAddedLinearOp(
const ArrayView<
const RCP<LinearOpBase<Scalar> > > &Ops)
 
  242  return Teuchos::rcp(
new DefaultAddedLinearOp<Scalar>(Ops));
 
  247template<
class Scalar>
 
  249RCP<DefaultAddedLinearOp<Scalar> >
 
  250defaultAddedLinearOp(
const ArrayView<
const RCP<
const LinearOpBase<Scalar> > > &Ops)
 
  252  return Teuchos::rcp(
new DefaultAddedLinearOp<Scalar>(Ops));
 
  260template<
class Scalar>
 
  261RCP<LinearOpBase<Scalar> >
 
  265  const std::string &label = 
"" 
  273template<
class Scalar>
 
  278  const std::string &label = 
"" 
  286template<
class Scalar>
 
  291  const std::string &label = 
"" 
  299template<
class Scalar>
 
  304  const std::string &label = 
"" 
Interface class for implicitly added linear operators.
 
Concrete composite LinearOpBase subclass that creates an implicitly added linear operator out of one ...
 
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.
 
RCP< LinearOpBase< Scalar > > getNonconstOp(const int k)
 
void applyImpl(const EOpTransp M_trans, const MultiVectorBase< Scalar > &X, const Ptr< MultiVectorBase< Scalar > > &Y, const Scalar alpha, const Scalar beta) const
 
bool opIsConst(const int k) const
 
void uninitialize()
Set to uninitialized.
 
std::string description() const
Prints just the name DefaultAddedLinearOp along with the overall dimensions and the number of constit...
 
RCP< const VectorSpaceBase< Scalar > > domain() const
Returns this->getOp(this->numOps()-1).domain() if <t>this->numOps() > 0 and returns Teuchos::null oth...
 
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< const VectorSpaceBase< Scalar > > range() const
Returns this->getOp(0).range() if <t>this->numOps() > 0 and returns Teuchos::null otherwise.
 
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
Prints the details about the constituent linear operators.
 
DefaultAddedLinearOp()
Constructs to uninitialized.
 
void initialize(const ArrayView< const RCP< LinearOpBase< Scalar > > > &Ops)
Initialize given a list of non-const linear operators.
 
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.
 
bool opSupportedImpl(EOpTransp M_trans) const
Returns true only if all constituent operators support M_trans.
 
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.
 
RCP< const LinearOpBase< Scalar > > clone() const
 
RCP< const LinearOpBase< Scalar > > getOp(const int k) const
 
Base class for all linear operators.
 
Interface for a collection of column vectors called a multi-vector.
 
EOpTransp
Enumeration for determining how a linear operator is applied. `*.
 
Teuchos::Ordinal Ordinal
Type for the dimension of a vector space. `*.
 
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)