#include <vnl_real_npolynomial.h>
Collaboration diagram for vnl_real_npolynomial:

Public Methods | |
| vnl_real_npolynomial () | |
| vnl_real_npolynomial (const vnl_vector< double > &c, const vnl_matrix< int > &p) | |
| double | eval (const vnl_vector< double > &x) |
| int | degree () |
| vnl_real_npolynomial | operator- () const |
| vnl_real_npolynomial | operator+ (vnl_real_npolynomial const &) const |
| vnl_real_npolynomial | operator- (vnl_real_npolynomial const &) const |
| vnl_real_npolynomial | operator * (vnl_real_npolynomial const &) const |
| vnl_real_npolynomial | operator+ (double) const |
| vnl_real_npolynomial | operator- (double P) const |
| vnl_real_npolynomial | operator * (double) const |
| vnl_real_npolynomial & | operator *= (double P) |
| vnl_real_npolynomial | operator/ (double P) const |
| vnl_real_npolynomial & | operator/= (double P) |
| int | degree () const |
| double & | operator[] (int i) |
| double | operator[] (int i) const |
| const vnl_vector< double > & | coefficients () const |
| vnl_vector< double > & | coefficients () |
| void | set (const vnl_vector< double > &c, const vnl_matrix< int > &p) |
| const vnl_matrix< int > & | polyn () const |
| vnl_matrix< int > & | polyn () |
Friends | |
| class | vnl_rnpoly_solve |
| vcl_ostream & | operator<< (vcl_ostream &, vnl_real_npolynomial const &) |
vnl_real_npolynomial represents a polynomial in multiple variables.
Used by vnl_rnpoly_solve which solves systems of polynomial equations.
Representation: an N-omial (N terms) is represented by (1) a vector
with the N coefficients (vnl_vector<double>), and (2) a matrix with
N rows, the i-th row representing the exponents of term i, as follows:
(vnl_matrix<int>) column k contains the (integer) exponent of variable
k. Example: the polynomial A*X^3 + B*X*Y + C*Y^2 + D*X*Y^2 is
represented by the coefficients vector [A B C D] and the exponents
matrix
[3 0]
[1 1]
[0 2]
[1 2].
Definition at line 48 of file vnl_real_npolynomial.h.
|
|
Definition at line 54 of file vnl_real_npolynomial.h. |
|
||||||||||||
|
|
|
|
Return the vector of coefficients. Definition at line 94 of file vnl_real_npolynomial.h. |
|
|
Return the vector of coefficients. Definition at line 91 of file vnl_real_npolynomial.h. |
|
|
Return the degree (highest power of x) of the polynomial. Definition at line 80 of file vnl_real_npolynomial.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 68 of file vnl_real_npolynomial.h. |
|
|
|
|
|
|
|
|
Definition at line 66 of file vnl_real_npolynomial.h. |
|
|
|
|
|
|
|
|
Definition at line 69 of file vnl_real_npolynomial.h. |
|
|
Definition at line 70 of file vnl_real_npolynomial.h. References vnl_vector< double >::size(). |
|
|
Access to the polynomial coefficients. Definition at line 87 of file vnl_real_npolynomial.h. |
|
|
Access to the polynomial coefficients. Definition at line 84 of file vnl_real_npolynomial.h. |
|
|
Return the vector of coefficients. Definition at line 107 of file vnl_real_npolynomial.h. |
|
|
Return the polynomial matrix. (ie specifying the variables in each product) Definition at line 103 of file vnl_real_npolynomial.h. |
|
||||||||||||
|
Set vector of coefficients of each product. |
|
||||||||||||
|
|
|
|
Definition at line 49 of file vnl_real_npolynomial.h. |
1.2.15 written by Dimitri van Heesch,
© 1997-2000