|
| 1 | +[docstrings] |
| 2 | +__pos__ = ''' |
| 3 | +Evaluates `+self_i` for each element of an array instance. |
| 4 | +
|
| 5 | +Returns: |
| 6 | + Self: An array containing the evaluated result for each element. |
| 7 | + The returned array must have the same data type as `self`. |
| 8 | +
|
| 9 | +See Also: |
| 10 | + array_api_typing.Positive |
| 11 | +
|
| 12 | +''' |
| 13 | + |
| 14 | +__neg__ = ''' |
| 15 | +Evaluates `-self_i` for each element of an array instance. |
| 16 | +
|
| 17 | +Returns: |
| 18 | + Self: an array containing the evaluated result for each element in |
| 19 | + `self`. The returned array must have a data type determined by Type |
| 20 | + Promotion Rules. |
| 21 | +
|
| 22 | +See Also: |
| 23 | + array_api_typing.Negative |
| 24 | +
|
| 25 | +''' |
| 26 | + |
| 27 | +__add__ = ''' |
| 28 | +Calculates the sum for each element of an array instance with the respective |
| 29 | +element of the array `other`. |
| 30 | +
|
| 31 | +Args: |
| 32 | + other: addend array. Must be compatible with `self` (see |
| 33 | + Broadcasting). Should have a numeric data type. |
| 34 | +
|
| 35 | +Returns: |
| 36 | + Self: an array containing the element-wise sums. The returned array |
| 37 | + must have a data type determined by Type Promotion Rules. |
| 38 | +
|
| 39 | +See Also: |
| 40 | + array_api_typing.Add |
| 41 | +
|
| 42 | +''' |
| 43 | + |
| 44 | +__sub__ = ''' |
| 45 | +Calculates the difference for each element of an array instance with the |
| 46 | +respective element of the array other. |
| 47 | +
|
| 48 | +The result of `self_i - other_i` must be the same as `self_i + |
| 49 | +(-other_i)` and must be governed by the same floating-point rules as |
| 50 | +addition (see `CanArrayAdd`). |
| 51 | +
|
| 52 | +Args: |
| 53 | + other: subtrahend array. Must be compatible with `self` (see |
| 54 | + Broadcasting). Should have a numeric data type. |
| 55 | +
|
| 56 | +Returns: |
| 57 | + Self: an array containing the element-wise differences. The returned |
| 58 | + array must have a data type determined by Type Promotion Rules. |
| 59 | +
|
| 60 | +See Also: |
| 61 | + array_api_typing.Subtract |
| 62 | +
|
| 63 | +''' |
| 64 | + |
| 65 | +__mul__ = ''' |
| 66 | +Calculates the product for each element of an array instance with the |
| 67 | +respective element of the array `other`. |
| 68 | +
|
| 69 | +Args: |
| 70 | + other: multiplicand array. Must be compatible with `self` (see |
| 71 | + Broadcasting). Should have a numeric data type. |
| 72 | +
|
| 73 | +Returns: |
| 74 | + Self: an array containing the element-wise products. The returned |
| 75 | + array must have a data type determined by Type Promotion Rules. |
| 76 | +
|
| 77 | +See Also: |
| 78 | + array_api_typing.Multiply |
| 79 | +
|
| 80 | +''' |
| 81 | + |
| 82 | +__truediv__ = ''' |
| 83 | +Evaluates `self_i / other_i` for each element of an array instance with the |
| 84 | +respective element of the array `other`. |
| 85 | +
|
| 86 | +Args: |
| 87 | + other: Must be compatible with `self` (see Broadcasting). Should have a |
| 88 | + numeric data type. |
| 89 | +
|
| 90 | +Returns: |
| 91 | + Self: an array containing the element-wise results. The returned array |
| 92 | + should have a floating-point data type determined by Type Promotion |
| 93 | + Rules. |
| 94 | +
|
| 95 | +See Also: |
| 96 | + array_api_typing.TrueDiv |
| 97 | +
|
| 98 | +''' |
| 99 | + |
| 100 | +__floordiv__ = ''' |
| 101 | +Evaluates `self_i // other_i` for each element of an array instance with the |
| 102 | +respective element of the array `other`. |
| 103 | +
|
| 104 | +Args: |
| 105 | + other: Must be compatible with `self` (see Broadcasting). Should have a |
| 106 | + numeric data type. |
| 107 | +
|
| 108 | +Returns: |
| 109 | + Self: an array containing the element-wise results. The returned array |
| 110 | + must have a data type determined by Type Promotion Rules. |
| 111 | +
|
| 112 | +See Also: |
| 113 | + array_api_typing.FloorDiv |
| 114 | +
|
| 115 | +''' |
| 116 | + |
| 117 | +__mod__ = ''' |
| 118 | +Evaluates `self_i % other_i` for each element of an array instance with the |
| 119 | +respective element of the array `other`. |
| 120 | +
|
| 121 | +Args: |
| 122 | + other: Must be compatible with `self` (see Broadcasting). Should have a |
| 123 | + numeric data type. |
| 124 | +
|
| 125 | +Returns: |
| 126 | + Self: an array containing the element-wise results. Each element-wise |
| 127 | + result must have the same sign as the respective element `other_i`. |
| 128 | + The returned array must have a floating-point data type determined |
| 129 | + by Type Promotion Rules. |
| 130 | +
|
| 131 | +See Also: |
| 132 | + array_api_typing.Remainder |
| 133 | +
|
| 134 | +''' |
| 135 | + |
| 136 | +__pow__ = ''' |
| 137 | +Calculates an implementation-dependent approximation of exponentiation by |
| 138 | +raising each element (the base) of an array instance to the power of |
| 139 | +`other_i` (the exponent), where `other_i` is the corresponding element of |
| 140 | +the array `other`. |
| 141 | +
|
| 142 | +Args: |
| 143 | + other: array whose elements correspond to the exponentiation exponent. |
| 144 | + Must be compatible with `self` (see Broadcasting). Should have a |
| 145 | + numeric data type. |
| 146 | +
|
| 147 | +Returns: |
| 148 | + Self: an array containing the element-wise results. The returned array |
| 149 | + must have a data type determined by Type Promotion Rules. |
| 150 | +
|
| 151 | +''' |
0 commit comments