2 #ifndef vnl_real_npolynomial_h_ 3 #define vnl_real_npolynomial_h_ 34 # include <vcl_msvc_warnings.h> 36 #include "vnl/vnl_export.h" 110 unsigned int degree()
const;
116 std::vector<unsigned int> degrees()
const;
119 double& operator [] (
unsigned int i) {
return coeffs_[i]; }
121 double operator [] (
unsigned int i)
const {
return coeffs_[i]; }
139 std::string asString()
const;
148 #endif // vnl_real_npolynomial_h_ unsigned int nterms_
number of terms of polynomial.
unsigned int nvar_
number of variables = # columns of polyn_.
vnl_real_npolynomial & operator/=(double P)
An ordinary mathematical matrix.
vnl_vector< double > & coefficients()
Return the vector of coefficients.
const vnl_vector< double > & coefficients() const
Return the vector of coefficients.
vnl_real_npolynomial operator/(double P) const
vnl_vector< T > operator *(vnl_matrix_inverse< T > const &i, vnl_vector< T > const &B)
Solves for roots of system of real polynomials.
std::ostream & operator<<(std::ostream &s, vnl_decnum const &r)
decimal output.
unsigned int maxdegree() const
Return the highest degree of the polynomial in an individual variable.
vnl_matrix< unsigned int > & polyn()
Return the vector of coefficients.
vnl_bignum operator-(vnl_bignum const &r1, vnl_bignum const &r2)
Returns the difference of two bignum numbers.
unsigned int ideg_
max. degree of polynomial.
real polynomial in N variables.
vnl_real_npolynomial operator-(double P) const
vnl_bignum operator+(vnl_bignum const &r1, long r2)
Returns the sum of two bignum numbers.
const vnl_matrix< unsigned int > & polyn() const
Return the polynomial matrix.
vnl_matrix< unsigned int > polyn_
degrees of every term for every variable.
vnl_vector< double > coeffs_
coefficients.
VNL_EXPORT std::ostream & operator<<(std::ostream &, vnl_real_npolynomial const &)