27 # include <vcl_msvc_warnings.h> 30 #include <vnl/algo/vnl_algo_export.h> 42 ls_(&ls), max_iter_(4*ls.get_number_of_unknowns()) {}
46 void set_max_iterations(
long max_iter) { max_iter_ = max_iter; }
53 long get_number_of_iterations()
const {
return num_iter_; }
56 void diagnose_outcome(std::ostream& os)
const;
58 static void translate_return_code(std::ostream& os,
int return_code);
61 double get_resid_norm_estimate()
const {
return resid_norm_estimate_; }
64 inline long return_code()
const {
return return_code_; }
70 double resid_norm_estimate_;
71 double result_norm_estimate_;
72 double A_condition_estimate_;
76 static int aprod_(
const long* mode,
const long*
m,
const long* n,
double* x,
double* y,
77 long* leniw,
long* lenrw,
long* iw,
double* rw,
Abstraction for a linear system of equations.
Abstraction for a linear system of equations.