summaryrefslogtreecommitdiff
path: root/numpy/_array_api/_elementwise_functions.py
blob: ef820dd5b88b2c311697fe8f1a8d04e83310cefa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
import numpy as np

def abs(x, /):
    return np.abs(x)

def acos(x, /):
    # Note: the function name is different here
    return np.arccos(x)

def acosh(x, /):
    # Note: the function name is different here
    return np.arccosh(x)

def add(x1, x2, /):
    return np.add(x1, x2)

def asin(x, /):
    # Note: the function name is different here
    return np.arcsin(x)

def asinh(x, /):
    # Note: the function name is different here
    return np.arcsinh(x)

def atan(x, /):
    # Note: the function name is different here
    return np.arctan(x)

def atan2(x1, x2, /):
    # Note: the function name is different here
    return np.arctan2(x1, x2)

def atanh(x, /):
    # Note: the function name is different here
    return np.arctanh(x)

def bitwise_and(x1, x2, /):
    return np.bitwise_and(x1, x2)

def bitwise_left_shift(x1, x2, /):
    # Note: the function name is different here
    return np.left_shift(x1, x2)

def bitwise_invert(x, /):
    # Note: the function name is different here
    return np.invert(x)

def bitwise_or(x1, x2, /):
    return np.bitwise_or(x1, x2)

def bitwise_right_shift(x1, x2, /):
    # Note: the function name is different here
    return np.right_shift(x1, x2)

def bitwise_xor(x1, x2, /):
    return np.bitwise_xor(x1, x2)

def ceil(x, /):
    return np.ceil(x)

def cos(x, /):
    return np.cos(x)

def cosh(x, /):
    return np.cosh(x)

def divide(x1, x2, /):
    return np.divide(x1, x2)

def equal(x1, x2, /):
    return np.equal(x1, x2)

def exp(x, /):
    return np.exp(x)

def expm1(x, /):
    return np.expm1(x)

def floor(x, /):
    return np.floor(x)

def floor_divide(x1, x2, /):
    return np.floor_divide(x1, x2)

def greater(x1, x2, /):
    return np.greater(x1, x2)

def greater_equal(x1, x2, /):
    return np.greater_equal(x1, x2)

def isfinite(x, /):
    return np.isfinite(x)

def isinf(x, /):
    return np.isinf(x)

def isnan(x, /):
    return np.isnan(x)

def less(x1, x2, /):
    return np.less(x1, x2)

def less_equal(x1, x2, /):
    return np.less_equal(x1, x2)

def log(x, /):
    return np.log(x)

def log1p(x, /):
    return np.log1p(x)

def log2(x, /):
    return np.log2(x)

def log10(x, /):
    return np.log10(x)

def logical_and(x1, x2, /):
    return np.logical_and(x1, x2)

def logical_not(x, /):
    return np.logical_not(x)

def logical_or(x1, x2, /):
    return np.logical_or(x1, x2)

def logical_xor(x1, x2, /):
    return np.logical_xor(x1, x2)

def multiply(x1, x2, /):
    return np.multiply(x1, x2)

def negative(x, /):
    return np.negative(x)

def not_equal(x1, x2, /):
    return np.not_equal(x1, x2)

def positive(x, /):
    return np.positive(x)

def pow(x1, x2, /):
    # Note: the function name is different here
    return np.power(x1, x2)

def remainder(x1, x2, /):
    return np.remainder(x1, x2)

def round(x, /):
    return np.round(x)

def sign(x, /):
    return np.sign(x)

def sin(x, /):
    return np.sin(x)

def sinh(x, /):
    return np.sinh(x)

def square(x, /):
    return np.square(x)

def sqrt(x, /):
    return np.sqrt(x)

def subtract(x1, x2, /):
    return np.subtract(x1, x2)

def tan(x, /):
    return np.tan(x)

def tanh(x, /):
    return np.tanh(x)

def trunc(x, /):
    return np.trunc(x)