33 unsigned long get_n () {
return(n_); }
76 virtual void f_Newton (
double *x,
double *f) = 0;
82 virtual void J_Newton (
double *x,
double **J) = 0;
94 unsigned long iter_Newton_;
100 unsigned long n_solve_LU_;
102 unsigned long icheck_;
112 void err (
double *errx,
double *erry);
114 void JLU (
double *x);
116 void solve_LU_(
double **LU,
int *p,
double *b,
int n,
double *out);
118 int check_integrity (
double *x);
Newton's method for nonlinear systems of equations.
void set_modified(bool modified)
sets whether modified Newtion's is being used
virtual void J_Newton(double *x, double **J)=0
evaluates the Jacobian matrix of the function being zeroed
int solve_Newton(double *x)
Solve the system of equations.
OdeNewton(unsigned long n)
constructs
bool get_modified()
gets whether modified Newtion's is being used
unsigned long get_iter_Newton()
gets iteration counter
int get_iJLU()
gets the LU decomposition interval
virtual ~OdeNewton()
destructs
void set_iJLU(int iJLU)
sets the LU decomposition interval
void set_tol_Newton(double tol_Newton)
sets the L infinity tolerance
unsigned long get_nJLU()
gets the LU decomposition counter
virtual void f_Newton(double *x, double *f)=0
evaluates the function being zeroed
void set_iter_Newton(unsigned long iter_Newton)
sets the iteration counter
unsigned long get_n_solve_LU()
gets the LU solve counter
unsigned long get_n()
gets the size of the system
bool get_ignore_JLU()
gets whether no LU decompositions should be done
double get_tol_Newton()
gets the L infinity tolerance
void set_ignore_JLU(bool ignore_JLU)
sets whether no LU decompositions should be done