numpoly.ndpoly.tonumpy#

ndpoly.tonumpy() ndarray[source]#

Cast polynomial to numpy.ndarray, if possible.

Return:

Same as object, but cast to numpy.ndarray.

Raise:
numpoly.baseclass.FeatureNotSupported:

When polynomial include indeterminats, casting to numpy.

Example:
>>> numpoly.polynomial([1, 2]).tonumpy()
array([1, 2])