You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
array instance whose elements correspond to the exponentiation base. Should have a numeric data type.
1040
-
other: Union[int, float, array]
1040
+
other: Union[int, float, complex, array]
1041
1041
other array whose elements correspond to the exponentiation exponent. Must be compatible with ``self`` (see :ref:`broadcasting`). Should have a numeric data type.
value(s) to set. Must be compatible with ``self[key]`` (see :ref:`broadcasting`).
1102
1102
1103
+
Notes
1104
+
-----
1103
1105
1104
-
.. note::
1105
-
1106
-
Setting array values must not affect the data type of ``self``.
1107
-
1108
-
When ``value`` is a Python scalar (i.e., ``int``, ``float``, ``bool``), behavior must follow specification guidance on mixing arrays with Python scalars (see :ref:`type-promotion`).
1109
-
1110
-
When ``value`` is an ``array`` of a different data type than ``self``, how values are cast to the data type of ``self`` is implementation defined.
1106
+
- Setting array values must not affect the data type of ``self``.
1107
+
- When ``value`` is a Python scalar (i.e., ``int``, ``float``, ``complex``, ``bool``), behavior must follow specification guidance on mixing arrays with Python scalars (see :ref:`type-promotion`).
1108
+
- When ``value`` is an ``array`` of a different data type than ``self``, how values are cast to the data type of ``self`` is implementation defined.
Calculates an implementation-dependent approximation of the inverse tangent of the quotient ``x1/x2``, having domain ``[-infinity, +infinity] x [-infinity, +infinity]`` (where the ``x`` notation denotes the set of ordered pairs of elements ``(x1_i, x2_i)``) and codomain ``[-π, +π]``, for each pair of elements ``(x1_i, x2_i)`` of the input arrays ``x1`` and ``x2``, respectively. Each element-wise result is expressed in radians.
input array corresponding to the y-coordinates. Should have a real-valued floating-point data type.
536
-
x2: Union[array, float]
536
+
x2: Union[array, int, float]
537
537
input array corresponding to the x-coordinates. Must be compatible with ``x1`` (see :ref:`broadcasting`). Should have a real-valued floating-point data type.
538
538
539
539
Returns
@@ -824,9 +824,9 @@ def clip(
824
824
x: array
825
825
input array. Should have a real-valued data type.
826
826
min: Optional[Union[int, float, array]]
827
-
lower-bound of the range to which to clamp. If ``None``, no lower bound must be applied. Must be compatible with ``x1`` (see :ref:`broadcasting`). Should have a real-valued data type. Default: ``None``.
827
+
lower-bound of the range to which to clamp. If ``None``, no lower bound must be applied. Must be compatible with ``x`` (see :ref:`broadcasting`). Should have a real-valued data type. Default: ``None``.
828
828
max: Optional[Union[int, float, array]]
829
-
upper-bound of the range to which to clamp. If ``None``, no upper bound must be applied. Must be compatible with ``x1`` (see :ref:`broadcasting`). Should have a real-valued data type. Default: ``None``.
829
+
upper-bound of the range to which to clamp. If ``None``, no upper bound must be applied. Must be compatible with ``x`` (see :ref:`broadcasting`). Should have a real-valued data type. Default: ``None``.
Composes a floating-point value with the magnitude of ``x1_i`` and the sign of ``x2_i`` for each element of the input array ``x1``.
889
889
890
890
Parameters
891
891
----------
892
-
x1: Union[array, float]
892
+
x1: Union[array, int, float]
893
893
input array containing magnitudes. Should have a real-valued floating-point data type.
894
-
x2: Union[array, float]
894
+
x2: Union[array, int, float]
895
895
input array whose sign bits are applied to the magnitudes of ``x1``. Must be compatible with ``x1`` (see :ref:`broadcasting`). Should have a real-valued floating-point data type.
Computes the square root of the sum of squares for each element ``x1_i`` of the input array ``x1`` with the respective element ``x2_i`` of the input array ``x2``.
Calculates the logarithm of the sum of exponentiations ``log(exp(x1) + exp(x2))`` for each element ``x1_i`` of the input array ``x1`` with the respective element ``x2_i`` of the input array ``x2``.
1875
1875
1876
1876
Parameters
1877
1877
----------
1878
-
x1: Union[array, float]
1878
+
x1: Union[array, int, float]
1879
1879
first input array. Should have a real-valued floating-point data type.
1880
-
x2: Union[array, float]
1880
+
x2: Union[array, int, float]
1881
1881
second input array. Must be compatible with ``x1`` (see :ref:`broadcasting`). Should have a real-valued floating-point data type.
Returns the next representable floating-point value for each element ``x1_i`` of the input array ``x1`` in the direction of the respective element ``x2_i`` of the input array ``x2``.
2169
2169
2170
2170
Parameters
2171
2171
----------
2172
-
x1: Union[array, float]
2172
+
x1: Union[array, int, float]
2173
2173
first input array. Should have a real-valued floating-point data type.
2174
-
x2: Union[array, float]
2174
+
x2: Union[array, int, float]
2175
2175
second input array. Must be compatible with ``x1`` (see :ref:`broadcasting`). Should have the same data type as ``x1``.
0 commit comments