Poly
¶
Bases: _PolyBase
flowchart TD
lmlib.polynomial.poly.Poly[Poly]
lmlib.polynomial.poly._PolyBase[_PolyBase]
lmlib.polynomial.poly._PolyBase --> lmlib.polynomial.poly.Poly
click lmlib.polynomial.poly.Poly href "" "lmlib.polynomial.poly.Poly"
click lmlib.polynomial.poly._PolyBase href "" "lmlib.polynomial.poly._PolyBase"
Univariate polynomial in vector exponent notation: \(\alpha^\mathsf{T} x^q\)
Polynomial class for univariate polynomials in vector exponent notation; see [Wildhaber2019], Chapter 6.
Such a polynomial p(x) in x is defined as
with coefficient vector \(\alpha \in \mathbb{R}^Q\), exponent vector \(q \in \mathbb{Z}_{\geq 0}^Q\), and function variable \(x \in \mathbb{R}\).
Parameters:
-
coef(array_like, shape=(Q)) –Coefficient vector
-
expo(array_like, shape=(Q)) –Exponent vector
Constructor method
Methods:
-
eval–Evaluates the polynomial
Attributes:
-
coef–ndarray: Coefficient vector \(\alpha\) -
expo–ndarray: Exponent vector \(q\) -
Q–int : Number of elements in exponent vector \(Q\)
-
expos–tuple of
ndarray: Exponent vectors -
coefs_fac–tuple of
ndarray, orNone: Factorized coefficient vectors -
coefs–tuple of
ndarray: Coefficient vector (i.e., not factorized) -
variable_count–int : Number of dependent variables
Source code in lmlib/polynomial/poly.py
Methods¶
eval
¶
Evaluates the polynomial
Parameters:
-
variable((array_like, scalar)) –Dependent variables of a polynomial.
Returns:
-
out(ndarray) –Output of evaluated polynomial. Shape is identical as a dependent variable