#include <vnl_rnpoly_solve.h>
Calculates all the roots of a system of N polynomials in N variables through continuation. Adapted from the PARALLEL CONTINUATION algorithm, written by Darrell Stam, 1991, and further improved by Kriegman and Ponce, 1992.
Definition at line 32 of file vnl_rnpoly_solve.h.
Public Member Functions | |
| vnl_rnpoly_solve (vcl_vector< vnl_real_npolynomial * > const &ps) | |
| The constructor already does all the calculations. | |
| ~vnl_rnpoly_solve () | |
| vcl_vector< vnl_vector< double > * > | real () |
| Array of real parts of roots. | |
| vcl_vector< vnl_vector< double > * > | imag () |
| Array of imaginary parts of roots. | |
| vcl_vector< vnl_vector< double > * > | realroots (double tol=1e-12) |
| Return real roots only. | |
Private Member Functions | |
| bool | compute () |
| Compute roots using continuation algorithm. | |
| void | Read_Input (vcl_vector< unsigned int > &ideg, vcl_vector< unsigned int > &terms, vcl_vector< int > &polyn, vcl_vector< double > &coeff) |
| This will read the input polynomials from a data file. | |
Private Attributes | |
| vcl_vector< vnl_real_npolynomial * > | ps_ |
| vcl_vector< vnl_vector< double > * > | r_ |
| vcl_vector< vnl_vector< double > * > | i_ |
|
|
The constructor already does all the calculations.
Definition at line 44 of file vnl_rnpoly_solve.h. |
|
|
Definition at line 761 of file vnl_rnpoly_solve.cxx. |
|
|
Compute roots using continuation algorithm.
Definition at line 767 of file vnl_rnpoly_solve.cxx. |
|
|
Array of imaginary parts of roots.
Definition at line 57 of file vnl_rnpoly_solve.h. |
|
||||||||||||||||||||
|
This will read the input polynomials from a data file.
Definition at line 723 of file vnl_rnpoly_solve.cxx. |
|
|
Array of real parts of roots.
Definition at line 54 of file vnl_rnpoly_solve.h. |
|
|
Return real roots only. Roots are real if the absolute value of their imaginary part is less than the optional argument tol, which defaults to 1e-12 [untested] Definition at line 60 of file vnl_rnpoly_solve.cxx. |
|
|
Definition at line 37 of file vnl_rnpoly_solve.h. |
|
|
Definition at line 35 of file vnl_rnpoly_solve.h. |
|
|
Definition at line 36 of file vnl_rnpoly_solve.h. |
1.4.4