SourceXtractorPlusPlus  0.11
Please provide a description of the project.
ResidualBlockProvider.h
Go to the documentation of this file.
1 
23 #ifndef MODELFITTING_RESIDUALBLOCKPROVIDER_H
24 #define MODELFITTING_RESIDUALBLOCKPROVIDER_H
25 
26 namespace ModelFitting {
27 
36 
37 public:
38 
45  using IterType = double*;
46 
57  virtual std::size_t numberOfResiduals() const = 0;
58 
71  virtual void populateResidualBlock(IterType output_iter) = 0;
72 
74  virtual ~ResidualBlockProvider() = default;
75 
76 }; // end of class ResidualBlockProvider
77 
78 } // end of namespace ModelFitting
79 
80 #endif /* MODELFITTING_RESIDUALBLOCKPROVIDER_H */
81 
Interface of a class which can provide a block of residuals for least square minimization solving...
virtual std::size_t numberOfResiduals() const =0
Returns the number of residuals provided by this provider.
virtual void populateResidualBlock(IterType output_iter)=0
Provides the residual values.
virtual ~ResidualBlockProvider()=default
Destructor.