2#ifndef included_AMP_FirstOperator
3#define included_AMP_FirstOperator
5#include "AMP/operators/newFrozenVectorDesign/OnePointOperator.h"
12 explicit FirstOperator( std::shared_ptr<const OperatorParameters> params )
22 auto in =
u->subsetVectorForVariable(
d_var );
23 auto out = r->subsetVectorForVariable(
d_var );
27 std::string
type()
const override {
return "FirstOperator"; }
40 std::shared_ptr<AMP::LinearAlgebra::Variable>
d_var;
A description of the data in the vector.
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
std::shared_ptr< const Vector > const_shared_ptr
std::shared_ptr< AMP::LinearAlgebra::Variable > getOutputVariable() const override
Return the output variable.
FirstOperator(std::shared_ptr< const OperatorParameters > params)
void apply(AMP::LinearAlgebra::Vector::const_shared_ptr u, AMP::LinearAlgebra::Vector::shared_ptr r) override
std::shared_ptr< AMP::LinearAlgebra::Variable > d_var
std::string type() const override
Return the name of the operator.
std::shared_ptr< AMP::LinearAlgebra::Variable > getInputVariable() const override
Return the input variable.
virtual void reset(std::shared_ptr< const OperatorParameters > params)
std::shared_ptr< AMP::Operator::Operator > shared_ptr