numpoly.ndpoly.exponents¶
- property ndpoly.exponents: numpy.ndarray¶
Polynomial exponents.
2-dimensional where the first axis is the same length as coefficients and the second is the length of the indeterminant names.
- Example:
>>> q0, q1 = numpoly.variable(2) >>> poly = numpoly.polynomial([2*q0**4, -3*q1**2+14]) >>> poly polynomial([2*q0**4, -3*q1**2+14]) >>> poly.exponents array([[0, 0], [0, 2], [4, 0]], dtype=uint32)