chaospy.ndpoly.tonumpy¶
- ndpoly.tonumpy() numpy.ndarray [source]¶
Cast polynomial to numpy.ndarray, if possible.
- Returns:
Same as object, but cast to numpy.ndarray.
- Raises:
- numpoly.baseclass.FeatureNotSupported:
When polynomial include indeterminats, casting to numpy.
- Examples:
>>> numpoly.polynomial([1, 2]).tonumpy() array([1, 2])