2#ifndef included_AMP_ColumnOperator
3#define included_AMP_ColumnOperator
5#include "AMP/operators/ColumnOperatorParameters.h"
6#include "AMP/operators/Operator.h"
31 std::string
type()
const override {
return "ColumnOperator"; }
47 void reset( std::shared_ptr<const OperatorParameters> params )
override;
58 std::shared_ptr<OperatorParameters>
61 std::shared_ptr<OperatorParameters> params =
nullptr )
override;
67 virtual void append( std::shared_ptr<Operator>
op );
78 bool isValidVector( std::shared_ptr<const AMP::LinearAlgebra::Vector>
u )
override;
93 std::vector<std::shared_ptr<Operator>>
find(
const std::string &name );
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
std::shared_ptr< const Vector > const_shared_ptr
void residual(AMP::LinearAlgebra::Vector::const_shared_ptr f, AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr r) override
virtual void append(std::shared_ptr< Operator > op)
ColumnOperator()
Empty constructor;.
std::shared_ptr< AMP::LinearAlgebra::Variable > getOutputVariable() const override
ColumnOperator(std::shared_ptr< const OperatorParameters > params)
Default constructor;.
void apply(AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr r) override
The apply routine for the column operator calls apply on each of the component operators.
std::shared_ptr< Operator > getOperator(size_t i)
bool isValidVector(std::shared_ptr< const AMP::LinearAlgebra::Vector > u) override
given a vector return whether it is valid or not
virtual ~ColumnOperator()
Destructor.
auto begin()
Return an iterator to the beginning of the operators.
std::vector< std::shared_ptr< Operator > > d_operators
std::shared_ptr< AMP::LinearAlgebra::Variable > getInputVariable() const override
Return the input variable.
auto end()
Return an iterator to the end of the operators.
std::shared_ptr< OperatorParameters > getParameters(const std::string &type, AMP::LinearAlgebra::Vector::const_shared_ptr u, std::shared_ptr< OperatorParameters > params=nullptr) override
std::vector< std::shared_ptr< Operator > > find(const std::string &name)
Return the operator(s) with the given name/type.
void reset(std::shared_ptr< const OperatorParameters > params) override
const auto & getOperators()
std::string type() const override
Return the name of the operator.
size_t getNumberOfOperators()
std::shared_ptr< AMP::Operator::Operator > shared_ptr