from __future__ import annotations from ._types import array import numpy as np def abs(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.abs `. See its docstring for more information. """ return np.abs(x) def acos(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.arccos `. See its docstring for more information. """ # Note: the function name is different here return np.arccos(x) def acosh(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.arccosh `. See its docstring for more information. """ # Note: the function name is different here return np.arccosh(x) def add(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.add `. See its docstring for more information. """ return np.add(x1, x2) def asin(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.arcsin `. See its docstring for more information. """ # Note: the function name is different here return np.arcsin(x) def asinh(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.arcsinh `. See its docstring for more information. """ # Note: the function name is different here return np.arcsinh(x) def atan(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.arctan `. See its docstring for more information. """ # Note: the function name is different here return np.arctan(x) def atan2(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.arctan2 `. See its docstring for more information. """ # Note: the function name is different here return np.arctan2(x1, x2) def atanh(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.arctanh `. See its docstring for more information. """ # Note: the function name is different here return np.arctanh(x) def bitwise_and(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.bitwise_and `. See its docstring for more information. """ return np.bitwise_and(x1, x2) def bitwise_left_shift(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.left_shift `. See its docstring for more information. """ # Note: the function name is different here return np.left_shift(x1, x2) def bitwise_invert(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.invert `. See its docstring for more information. """ # Note: the function name is different here return np.invert(x) def bitwise_or(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.bitwise_or `. See its docstring for more information. """ return np.bitwise_or(x1, x2) def bitwise_right_shift(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.right_shift `. See its docstring for more information. """ # Note: the function name is different here return np.right_shift(x1, x2) def bitwise_xor(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.bitwise_xor `. See its docstring for more information. """ return np.bitwise_xor(x1, x2) def ceil(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.ceil `. See its docstring for more information. """ return np.ceil(x) def cos(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.cos `. See its docstring for more information. """ return np.cos(x) def cosh(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.cosh `. See its docstring for more information. """ return np.cosh(x) def divide(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.divide `. See its docstring for more information. """ return np.divide(x1, x2) def equal(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.equal `. See its docstring for more information. """ return np.equal(x1, x2) def exp(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.exp `. See its docstring for more information. """ return np.exp(x) def expm1(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.expm1 `. See its docstring for more information. """ return np.expm1(x) def floor(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.floor `. See its docstring for more information. """ return np.floor(x) def floor_divide(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.floor_divide `. See its docstring for more information. """ return np.floor_divide(x1, x2) def greater(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.greater `. See its docstring for more information. """ return np.greater(x1, x2) def greater_equal(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.greater_equal `. See its docstring for more information. """ return np.greater_equal(x1, x2) def isfinite(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.isfinite `. See its docstring for more information. """ return np.isfinite(x) def isinf(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.isinf `. See its docstring for more information. """ return np.isinf(x) def isnan(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.isnan `. See its docstring for more information. """ return np.isnan(x) def less(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.less `. See its docstring for more information. """ return np.less(x1, x2) def less_equal(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.less_equal `. See its docstring for more information. """ return np.less_equal(x1, x2) def log(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.log `. See its docstring for more information. """ return np.log(x) def log1p(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.log1p `. See its docstring for more information. """ return np.log1p(x) def log2(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.log2 `. See its docstring for more information. """ return np.log2(x) def log10(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.log10 `. See its docstring for more information. """ return np.log10(x) def logical_and(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.logical_and `. See its docstring for more information. """ return np.logical_and(x1, x2) def logical_not(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.logical_not `. See its docstring for more information. """ return np.logical_not(x) def logical_or(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.logical_or `. See its docstring for more information. """ return np.logical_or(x1, x2) def logical_xor(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.logical_xor `. See its docstring for more information. """ return np.logical_xor(x1, x2) def multiply(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.multiply `. See its docstring for more information. """ return np.multiply(x1, x2) def negative(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.negative `. See its docstring for more information. """ return np.negative(x) def not_equal(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.not_equal `. See its docstring for more information. """ return np.not_equal(x1, x2) def positive(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.positive `. See its docstring for more information. """ return np.positive(x) def pow(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.power `. See its docstring for more information. """ # Note: the function name is different here return np.power(x1, x2) def remainder(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.remainder `. See its docstring for more information. """ return np.remainder(x1, x2) def round(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.round `. See its docstring for more information. """ return np.round(x) def sign(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.sign `. See its docstring for more information. """ return np.sign(x) def sin(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.sin `. See its docstring for more information. """ return np.sin(x) def sinh(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.sinh `. See its docstring for more information. """ return np.sinh(x) def square(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.square `. See its docstring for more information. """ return np.square(x) def sqrt(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.sqrt `. See its docstring for more information. """ return np.sqrt(x) def subtract(x1: array, x2: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.subtract `. See its docstring for more information. """ return np.subtract(x1, x2) def tan(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.tan `. See its docstring for more information. """ return np.tan(x) def tanh(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.tanh `. See its docstring for more information. """ return np.tanh(x) def trunc(x: array, /) -> array: """ Array API compatible wrapper for :py:func:`np.trunc `. See its docstring for more information. """ return np.trunc(x)