11 #ifndef __MEAL_Union_H
12 #define __MEAL_Union_H
14 #include "MEAL/ScalarVector.h"
15 #include "MEAL/Composite.h"
20 class Union : public ScalarVector
26 Union (Composite* policy = 0);
41 unsigned size () const { return dimension; }
44 std::string get_name () const { return "Union"; }
49 void calculate ( double& result, std::vector<double>* grad);
54 std::vector< Project<ScalarVector> > model;
ScalarVector() Default contructor. Definition: ScalarVector.C:12
void calculate(double &result, std::vector< double > *grad) Return the result and its gradient. Definition: Union.C:56
~Union() Destructor. Definition: Union.h:45
Parameter policy for composite functions. Definition: Composite.h:25
Represents the union of disjoint vector subspaces. Definition: Union.h:25
Scalar functions that depend on an index. Definition: ScalarVector.h:26
Namespace in which all modeling and calibration related code is declared. Definition: ExampleComplex2.h:16
std::string get_name() const Return the name of the class. Definition: Union.h:54
Union & operator=(const Union ©) Assignment operator. Definition: Union.C:31
virtual unsigned size() const =0 Get the size of the position angle array.
Union(Composite *policy=0) Default constructor. Definition: Union.C:13
unsigned size() const Get the dimension of the union. Definition: Union.h:51
Template combines a reference to a Component and its Projection. Definition: Projection.h:65
virtual void copy(const Function *model) Does the work for operator =. Definition: Function.C:58
void push_back(ScalarVector *) Add a vector space. Definition: Union.C:46
Generated using doxygen 1.8.17
|