#include <rootsolve.h>
Inheritance diagram for NUM::PolyRootSolver_Direct:


Public Member Functions | |
| PolyRootSolver_Direct () | |
| ~PolyRootSolver_Direct () | |
| int | solve (int order, const dbl *c, dbl *r) |
| [overriding a virtual]; returns -2 for invalid order | |
| int | Solve_1 (const dbl *c, dbl *r) |
| int | Solve_2 (const dbl *c, dbl *r) |
| int | Solve_3 (const dbl *c, dbl *r) |
| int | Solve_4 (const dbl *c, dbl *r) |
Public Attributes | |
| Params | par |
Static Public Attributes | |
| const Params | defaults |
| Default values of the parameters. | |
This class is completely thread-save; several threads may execute the solve() function at the same time.
Definition at line 68 of file rootsolve.h.
|
|
|
|
|
|
|
||||||||||||||||
|
[overriding a virtual]; returns -2 for invalid order
Reimplemented from NUM::PolyRootSolver. Definition at line 388 of file direct.cc. References dbl, Solve_1(), Solve_2(), Solve_3(), and Solve_4(). |
|
||||||||||||
|
Direct access to the root solving function for orders 1..4: Solve_D(): Solve roots of polynomial of degree D, i.e. Definition at line 37 of file direct.cc. References dbl. |
|
||||||||||||
|
Definition at line 52 of file direct.cc. References dbl, NUM::fabs(), NUM::PolyRootSolver_Direct::Params::nearly_zero, par, Solve_1(), and NUM::sqr(). |
|
||||||||||||
|
Definition at line 122 of file direct.cc. References NUM::cbrt(), CritAssert, dbl, NUM::fabs(), NUM::PolyRootSolver_Direct::Params::nearly_zero, par, Solve_2(), and NUM::sqr(). |
|
||||||||||||
|
Definition at line 216 of file direct.cc. References NUM::cbrt(), dbl, NUM::fabs(), NUM::PolyRootSolver_Direct::Params::nearly_zero, par, Solve_2(), Solve_3(), and NUM::sqr(). Referenced by solve(). |
|
|
Initial value:
{
INIT_FIELD(nearly_zero) 1e-10
}
|
|
|
Definition at line 77 of file rootsolve.h. |
1.3.5