Template Class Poly¶
Defined in File Utils_Poly.hh
Inheritance Relationships¶
Base Type¶
public Eigen::Matrix< Real, Eigen::Dynamic, 1 >
Class Documentation¶
-
template<typename Real>
class Utils::Poly : public Eigen::Matrix<Real, Eigen::Dynamic, 1>¶
-
Public Types
-
typedef int Integer¶
Public Functions
-
inline Poly()¶
-
inline Poly(int order)¶
-
Real normalize(void)¶
-
Scale polynomial \( p(x) = \sum_{i=0}^n a_i x^i \) in such a way \( \max_{i=0}^n (|a_i|/S) = 1 \). Return the scaling value \( S \)
-
void purge(Real epsi)¶
-
On the polynomial \( p(x) = \sum_{i=0}^n a_i x^i \) purge (set to 0) elements such that \( |a_i| \leq \epsilon \).
-
void adjust_degree(void)¶
-
Change the polynomial order of the polynomial \( p(x) = \sum_{i=0}^n a_i x^i \) in such a way that \( a_n \neq 0 \).
-
Integer sign_variations(void) const¶
-
Count the sign variations of the polynomial \( p(x) = \sum_{i=0}^n a_i x^i \) i.e. the number of sign change of the sequance \( [a_0,a_1,\ldots,a_n] \).
-
inline void make_monic(void)¶
-
Change the polynomial in such a way \( p(x) = x^n + \sum_{i=0}^{n-1} a_i x^i \).
-
typedef int Integer¶