2 #ifndef vnl_least_squares_function_h_ 3 #define vnl_least_squares_function_h_ 23 #include "vnl/vnl_export.h" 50 unsigned int number_of_residuals,
52 : failure(false), p_(number_of_unknowns), n_(number_of_residuals),
53 use_gradient_(g == use_gradient)
54 { dim_warning(p_,n_); }
80 virtual void trace(
int iteration,
101 void init(
unsigned int number_of_unknowns,
unsigned int number_of_residuals)
102 { p_ = number_of_unknowns; n_ = number_of_residuals; dim_warning(p_,n_); }
104 void dim_warning(
unsigned int n_unknowns,
unsigned int n_residuals);
107 #endif // vnl_least_squares_function_h_
An ordinary mathematical matrix.
void init(unsigned int number_of_unknowns, unsigned int number_of_residuals)
unsigned int get_number_of_unknowns() const
Return the number of unknowns.
Abstract base for minimising functions.
vnl_least_squares_function(unsigned int number_of_unknowns, unsigned int number_of_residuals, UseGradient g=use_gradient)
Construct vnl_least_squares_function.
unsigned int get_number_of_residuals() const
Return the number of residuals.
bool has_gradient() const
Return true if the derived class has indicated that gradf has been implemented.