20 #ifndef NONLINEAR_ALGEBRA_H_
21 #define NONLINEAR_ALGEBRA_H_
23 #include "mbsim/utils/function.h"
29 RegulaFalsiSolver, FixPointIterationSolver, NewtonMethodSolver
46 int getNumberOfIterations()
const {
return it; };
47 int getInfo()
const {
return info; };
48 void setMaximumNumberOfIterations(
int itmax_) {
itmax = itmax_; }
49 void setTolerance(
double tol_) {
tol = tol_; }
57 double solve(
double a,
double b);
99 std::vector<double> getNorms() {
102 double getNumberOfIterations() {
105 double getNumberOfMaximalIterations() {
108 void setNumberOfMaximalIterations(
int itermax_) {
111 double getTolerance() {
114 void setTolerance(
double tol_) {
119 fmatvec::Vec solve(
const fmatvec::Vec &initialGuess);
168 int getNumberOfIterations()
const {
return iter; }
169 int getInfo()
const {
return info; }
170 void setMaximumNumberOfIterations(
int itmax_) {
itmax = itmax_; }
171 void setMaximumDampingSteps(
int kmax_) { kmax = kmax_; }
172 void setTolerance(
double tol_) {
tol = tol_; }
179 double solve(
const double &x);
218 int getNumberOfIterations()
const {
return iter; }
219 int getNumberOfMaximalIterations()
const {
return itmax; }
220 int getInfo()
const {
return info; }
221 std::vector<double> getNorms() {
return norms; }
222 void setMaximumNumberOfIterations(
int itmax_) {
itmax = itmax_; }
223 void setMaximumDampingSteps(
int kmax_) { kmax = kmax_; }
224 void setTolerance(
double tol_) {
tol = tol_; }
231 fmatvec::Vec
solve(
const fmatvec::Vec &x);