MUQ  0.4.3
ReplicateOperator.h
Go to the documentation of this file.
1 #ifndef REPLICATEOPERATOR_H_
2 #define REPLICATEOPERATOR_H_
3 
5 
6 namespace muq {
7  namespace Modeling {
8 
15  class ReplicateOperator: public ModPiece {
16  public:
17 
22  ReplicateOperator(unsigned int vectorDim, unsigned int numRepeat);
23 
24 
25  private:
26  unsigned int numRepl;
27 
28  virtual void EvaluateImpl(muq::Modeling::ref_vector<Eigen::VectorXd> const& inputs) override;
29 
30  }; // class ConstantVector
31 
32  } // namespace Modeling
33 } // namespace muq
34 
35 #endif
Provides an abstract interface for defining vector-valued model components.
Definition: ModPiece.h:148
A muq::Modeling::ModPiece that replicates a single input vector times.
ReplicateOperator(unsigned int vectorDim, unsigned int numRepeat)
virtual void EvaluateImpl(muq::Modeling::ref_vector< Eigen::VectorXd > const &inputs) override
std::vector< std::reference_wrapper< const T > > ref_vector
A vector of references to something ...
Definition: WorkPiece.h:37