|
718 | 718 | _negative_docstring_ = """
|
719 | 719 | negative(x, out=None, order='K')
|
720 | 720 |
|
721 |
| -Computes the numerical negative elementwise. |
| 721 | +Computes the numerical negative for each element `x_i` of input array `x`. |
722 | 722 | Args:
|
723 | 723 | x (usm_ndarray):
|
724 | 724 | Input array, expected to have numeric data type.
|
|
730 | 730 | Default: "K".
|
731 | 731 | Return:
|
732 | 732 | usm_ndarray:
|
733 |
| - An array containing the element-wise negative values. |
| 733 | + An array containing the negative of `x`. |
734 | 734 | """
|
735 | 735 |
|
736 | 736 | negative = UnaryElementwiseFunc(
|
|
770 | 770 | _positive_docstring_ = """
|
771 | 771 | positive(x, out=None, order='K')
|
772 | 772 |
|
773 |
| -Computes the numerical positive element-wise. |
| 773 | +Computes the numerical positive for each element `x_i` of input array `x`. |
774 | 774 | Args:
|
775 | 775 | x (usm_ndarray):
|
776 | 776 | Input array, expected to have numeric data type.
|
|
782 | 782 | Default: "K".
|
783 | 783 | Return:
|
784 | 784 | usm_ndarray:
|
785 |
| - An array containing the element-wise positive values. |
| 785 | + An array containing the values of `x`. |
786 | 786 | """
|
787 | 787 |
|
788 | 788 | positive = UnaryElementwiseFunc(
|
|
802 | 802 | x2 (usm_ndarray):
|
803 | 803 | Second input array, also expected to have a numeric data type.
|
804 | 804 | Returns:
|
805 |
| - usm_narray: |
| 805 | + usm_ndarray: |
806 | 806 | an array containing the element-wise result. The data type of
|
807 | 807 | the returned array is determined by the Type Promotion Rules.
|
808 | 808 | """
|
|
899 | 899 | _square_docstring_ = """
|
900 | 900 | square(x, out=None, order='K')
|
901 | 901 |
|
902 |
| -Computes `x_i**2` for each element `x_i` for input array `x`. |
| 902 | +Computes `x_i**2` (or `x_i*x_i`) for each element `x_i` of input array `x`. |
| 903 | +Args: |
| 904 | + x (usm_ndarray): |
| 905 | + Input array, expected to have numeric data type. |
| 906 | + out ({None, usm_ndarray}, optional): |
| 907 | + Output array to populate. |
| 908 | + Array have the correct shape and the expected data type. |
| 909 | + order ("C","F","A","K", optional): |
| 910 | + Memory layout of the newly output array, if parameter `out` is `None`. |
| 911 | + Default: "K". |
| 912 | +Returns: |
| 913 | + usm_ndarray: |
| 914 | + An array containing the square `x`. |
| 915 | + The data type of the returned array is determined by |
| 916 | + the Type Promotion Rules. |
903 | 917 | """
|
904 | 918 |
|
905 | 919 | square = UnaryElementwiseFunc(
|
|
0 commit comments