From f2ac67e236c1dbc60f66c4a4b041403a197e52f2 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Tue, 23 Feb 2021 16:17:07 -0700 Subject: Update array_api namespace with latest changes from the spec --- numpy/_array_api/_elementwise_functions.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'numpy/_array_api/_elementwise_functions.py') diff --git a/numpy/_array_api/_elementwise_functions.py b/numpy/_array_api/_elementwise_functions.py index 9de4261ac..a117c3370 100644 --- a/numpy/_array_api/_elementwise_functions.py +++ b/numpy/_array_api/_elementwise_functions.py @@ -294,6 +294,14 @@ def log10(x: array, /) -> array: """ return np.log10(x) +def logaddexp(x1: array, x2: array) -> array: + """ + Array API compatible wrapper for :py:func:`np.logaddexp `. + + See its docstring for more information. + """ + return np.logaddexp(x1, x2) + def logical_and(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.logical_and `. -- cgit v1.2.1