diff options
author | Aaron Meurer <asmeurer@gmail.com> | 2021-02-23 16:17:07 -0700 |
---|---|---|
committer | Aaron Meurer <asmeurer@gmail.com> | 2021-02-23 16:17:07 -0700 |
commit | f2ac67e236c1dbc60f66c4a4b041403a197e52f2 (patch) | |
tree | c4c50c88cb923667d94666a1558108f9decca963 /numpy/_array_api/_elementwise_functions.py | |
parent | affc5f0c2581a8d17825bcb7d9610e4f58560b5d (diff) | |
download | numpy-f2ac67e236c1dbc60f66c4a4b041403a197e52f2.tar.gz |
Update array_api namespace with latest changes from the spec
Diffstat (limited to 'numpy/_array_api/_elementwise_functions.py')
-rw-r--r-- | numpy/_array_api/_elementwise_functions.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 <numpy.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 <numpy.logical_and>`. |