mindspore/docs/api/api_python/numpy/mindspore.numpy.polysub.rst

19 lines
557 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.numpy.polysub
=======================
.. py:function:: mindspore.numpy.polysub(a1, a2)
两个多项式的差(减法)。 给定两个多项式 `a1``a2` ,返回 ``a1 - a2``
.. note::
目前不支持NumPy对象poly1d。
参数:
- **a1** (Union[int, float, list, tuple, Tensor]) - 被减多项式。
- **a2** (Union[int, float, list, tuple, Tensor]) - 减数多项式。
返回:
Tensor输入的差。
异常:
- **ValueError** - 如果输入数组的维数超过1。