UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
residual.hpp
1 /* abstract_residual.hpp */
2 /* $Id: abstract_residual.hpp,v 1.1 2008/09/23 15:52:28 urij Exp $ */
3 #ifndef __abstract_residual_hpp
4 #define __abstract_residual_hpp
5 
6 #include <vector>
7 
10 {
11 public:
12 
13  virtual ~AbstractResidual(){};
14 
16  double operator()(const std::vector<double> &x) const {return calc(x);}
17 
18 protected:
19 
21  virtual double calc(const std::vector<double> &x) const = 0;
22 };
23 
24 #endif /* __abstract_residual_hpp */
Definition: residual.hpp:9
virtual double calc(const std::vector< double > &x) const =0
double operator()(const std::vector< double > &x) const
Definition: residual.hpp:16