Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

vnl_real_npolynomial Class Reference

#include <vnl_real_npolynomial.h>

Collaboration diagram for vnl_real_npolynomial:

Collaboration graph
[legend]
List of all members.

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 &)

Detailed Description

real polynomial in N variables.
      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.


Constructor & Destructor Documentation

vnl_real_npolynomial::vnl_real_npolynomial   [inline]
 

Definition at line 54 of file vnl_real_npolynomial.h.

vnl_real_npolynomial::vnl_real_npolynomial const vnl_vector< double > &    c,
const vnl_matrix< int > &    p
 


Member Function Documentation

vnl_vector<double>& vnl_real_npolynomial::coefficients   [inline]
 

Return the vector of coefficients.

Definition at line 94 of file vnl_real_npolynomial.h.

const vnl_vector<double>& vnl_real_npolynomial::coefficients   const [inline]
 

Return the vector of coefficients.

Definition at line 91 of file vnl_real_npolynomial.h.

int vnl_real_npolynomial::degree   const [inline]
 

Return the degree (highest power of x) of the polynomial.

Definition at line 80 of file vnl_real_npolynomial.h.

int vnl_real_npolynomial::degree  
 

double vnl_real_npolynomial::eval const vnl_vector< double > &    x
 

vnl_real_npolynomial vnl_real_npolynomial::operator * double    const
 

vnl_real_npolynomial vnl_real_npolynomial::operator * vnl_real_npolynomial const &    const
 

vnl_real_npolynomial& vnl_real_npolynomial::operator *= double    P [inline]
 

Definition at line 68 of file vnl_real_npolynomial.h.

vnl_real_npolynomial vnl_real_npolynomial::operator+ double    const
 

vnl_real_npolynomial vnl_real_npolynomial::operator+ vnl_real_npolynomial const &    const
 

vnl_real_npolynomial vnl_real_npolynomial::operator- double    P const [inline]
 

Definition at line 66 of file vnl_real_npolynomial.h.

vnl_real_npolynomial vnl_real_npolynomial::operator- vnl_real_npolynomial const &    const
 

vnl_real_npolynomial vnl_real_npolynomial::operator-   const
 

vnl_real_npolynomial vnl_real_npolynomial::operator/ double    P const [inline]
 

Definition at line 69 of file vnl_real_npolynomial.h.

vnl_real_npolynomial& vnl_real_npolynomial::operator/= double    P [inline]
 

Definition at line 70 of file vnl_real_npolynomial.h.

References vnl_vector< double >::size().

double vnl_real_npolynomial::operator[] int    i const [inline]
 

Access to the polynomial coefficients.

Definition at line 87 of file vnl_real_npolynomial.h.

double& vnl_real_npolynomial::operator[] int    i [inline]
 

Access to the polynomial coefficients.

Definition at line 84 of file vnl_real_npolynomial.h.

vnl_matrix<int>& vnl_real_npolynomial::polyn   [inline]
 

Return the vector of coefficients.

Definition at line 107 of file vnl_real_npolynomial.h.

const vnl_matrix<int>& vnl_real_npolynomial::polyn   const [inline]
 

Return the polynomial matrix. (ie specifying the variables in each product)

Definition at line 103 of file vnl_real_npolynomial.h.

void vnl_real_npolynomial::set const vnl_vector< double > &    c,
const vnl_matrix< int > &    p
 

Set vector of coefficients of each product.


Friends And Related Function Documentation

vcl_ostream& operator<< vcl_ostream &   ,
vnl_real_npolynomial const &   
[friend]
 

friend class vnl_rnpoly_solve [friend]
 

Definition at line 49 of file vnl_real_npolynomial.h.


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:17:23 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000