|
stator
A math, geometry, and utility library
|
A collection of Polynomials which form a Sturm chain. More...
#include <polynomial.hpp>
Public Member Functions | |
| SturmChain (const Polynomial< Order, Coeff_t, PolyVar > &p_n) | |
| Constructor if is the first Polynomial in the chain. More... | |
| SturmChain (const Polynomial< Order+1, Coeff_t, PolyVar > &p_nplus1, const Polynomial< Order, Coeff_t, PolyVar > &p_n) | |
| Constructor if is an intermediate Polynomial in the chain. More... | |
| Polynomial< Order, Coeff_t, PolyVar > | get (size_t i) const |
| void | output_helper (std::ostream &os, const size_t max_order) const |
| template<class Coeff_t2 > | |
| size_t | roots (const Coeff_t2 &a, const Coeff_t2 &b) const |
| template<class Coeff_t2 > | |
| size_t | sign_change_helper (const int last_sign, const Coeff_t2 &x) const |
| Helper function for calculating the sign changes in the Sturm chain. More... | |
| template<class Coeff_t2 > | |
| size_t | sign_changes (const Coeff_t2 &x) const |
Public Attributes | |
| Polynomial< Order, Coeff_t, PolyVar > | _p_n |
| SturmChain< Order-1, Coeff_t, PolyVar > | _p_nminus1 |
Definition at line 969 of file polynomial.hpp.
|
inline |
Definition at line 973 of file polynomial.hpp.
|
inline |
Definition at line 980 of file polynomial.hpp.
|
inline |
Accessor function for the ith Polynomial in the Sturm chain.
This promotes the order of the Sturm chain polynomial to the original order of the Polynomial as this is done at runtime.
Definition at line 994 of file polynomial.hpp.
|
inline |
Definition at line 1038 of file polynomial.hpp.
|
inline |
Definition at line 1013 of file polynomial.hpp.
|
inline |
These functions use -1, 0, and +1 to denote the sign of an evaluation of a polynomial. The sign of the previous Polynomial in the Strum chain is given as last_sign. If this is zero, then there has been no sign so far (all previous polynomials were zero or this is the first polynomial in the chain).
Definition at line 1029 of file polynomial.hpp.
|
inline |
Count the number of sign changes in the Sturm chain evaluated at
.
This actually uses a helper function sign_change_helper to carry out the calculation.
Definition at line 1008 of file polynomial.hpp.
| Polynomial<Order, Coeff_t, PolyVar> sym::detail::SturmChain< Order, Coeff_t, PolyVar >::_p_n |
Definition at line 984 of file polynomial.hpp.
| SturmChain<Order-1, Coeff_t, PolyVar> sym::detail::SturmChain< Order, Coeff_t, PolyVar >::_p_nminus1 |
Definition at line 985 of file polynomial.hpp.
1.8.13