Skip to content

Commit 02fa923

Browse files
authored
Make logaddexp() arguments pos-only (#406)
1 parent c16f5fa commit 02fa923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/API_specification/signatures/elementwise_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ def log10(x: array, /) -> array:
870870
an array containing the evaluated base ``10`` logarithm for each element in ``x``. The returned array must have a floating-point data type determined by :ref:`type-promotion`.
871871
"""
872872

873-
def logaddexp(x1: array, x2: array) -> array:
873+
def logaddexp(x1: array, x2: array, /) -> array:
874874
"""
875875
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``.
876876

0 commit comments

Comments
 (0)