Skip to content

Commit 5b663bd

Browse files
authored
Merge pull request numpy#28505 from jorenham/numtype/123
TYP: stub ``numpy._core.umath``
2 parents d6ac70e + 0d25a05 commit 5b663bd

File tree

2 files changed

+198
-0
lines changed

2 files changed

+198
-0
lines changed

numpy/_core/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,7 @@ python_sources = [
13821382
'strings.py',
13831383
'strings.pyi',
13841384
'umath.py',
1385+
'umath.pyi',
13851386
]
13861387

13871388
py.install_sources(

numpy/_core/umath.pyi

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
from numpy import (
2+
absolute,
3+
add,
4+
arccos,
5+
arccosh,
6+
arcsin,
7+
arcsinh,
8+
arctan,
9+
arctan2,
10+
arctanh,
11+
bitwise_and,
12+
bitwise_count,
13+
bitwise_or,
14+
bitwise_xor,
15+
cbrt,
16+
ceil,
17+
conj,
18+
conjugate,
19+
copysign,
20+
cos,
21+
cosh,
22+
deg2rad,
23+
degrees,
24+
divide,
25+
divmod,
26+
e,
27+
equal,
28+
euler_gamma,
29+
exp,
30+
exp2,
31+
expm1,
32+
fabs,
33+
float_power,
34+
floor,
35+
floor_divide,
36+
fmax,
37+
fmin,
38+
fmod,
39+
frexp,
40+
frompyfunc,
41+
gcd,
42+
greater,
43+
greater_equal,
44+
heaviside,
45+
hypot,
46+
invert,
47+
isfinite,
48+
isinf,
49+
isnan,
50+
isnat,
51+
lcm,
52+
ldexp,
53+
left_shift,
54+
less,
55+
less_equal,
56+
log,
57+
log1p,
58+
log2,
59+
log10,
60+
logaddexp,
61+
logaddexp2,
62+
logical_and,
63+
logical_not,
64+
logical_or,
65+
logical_xor,
66+
matvec,
67+
maximum,
68+
minimum,
69+
mod,
70+
modf,
71+
multiply,
72+
negative,
73+
nextafter,
74+
not_equal,
75+
pi,
76+
positive,
77+
power,
78+
rad2deg,
79+
radians,
80+
reciprocal,
81+
remainder,
82+
right_shift,
83+
rint,
84+
sign,
85+
signbit,
86+
sin,
87+
sinh,
88+
spacing,
89+
sqrt,
90+
square,
91+
subtract,
92+
tan,
93+
tanh,
94+
true_divide,
95+
trunc,
96+
vecdot,
97+
vecmat,
98+
)
99+
100+
__all__ = [
101+
"absolute",
102+
"add",
103+
"arccos",
104+
"arccosh",
105+
"arcsin",
106+
"arcsinh",
107+
"arctan",
108+
"arctan2",
109+
"arctanh",
110+
"bitwise_and",
111+
"bitwise_count",
112+
"bitwise_or",
113+
"bitwise_xor",
114+
"cbrt",
115+
"ceil",
116+
"conj",
117+
"conjugate",
118+
"copysign",
119+
"cos",
120+
"cosh",
121+
"deg2rad",
122+
"degrees",
123+
"divide",
124+
"divmod",
125+
"e",
126+
"equal",
127+
"euler_gamma",
128+
"exp",
129+
"exp2",
130+
"expm1",
131+
"fabs",
132+
"float_power",
133+
"floor",
134+
"floor_divide",
135+
"fmax",
136+
"fmin",
137+
"fmod",
138+
"frexp",
139+
"frompyfunc",
140+
"gcd",
141+
"greater",
142+
"greater_equal",
143+
"heaviside",
144+
"hypot",
145+
"invert",
146+
"isfinite",
147+
"isinf",
148+
"isnan",
149+
"isnat",
150+
"lcm",
151+
"ldexp",
152+
"left_shift",
153+
"less",
154+
"less_equal",
155+
"log",
156+
"log1p",
157+
"log2",
158+
"log10",
159+
"logaddexp",
160+
"logaddexp2",
161+
"logical_and",
162+
"logical_not",
163+
"logical_or",
164+
"logical_xor",
165+
"matvec",
166+
"maximum",
167+
"minimum",
168+
"mod",
169+
"modf",
170+
"multiply",
171+
"negative",
172+
"nextafter",
173+
"not_equal",
174+
"pi",
175+
"positive",
176+
"power",
177+
"rad2deg",
178+
"radians",
179+
"reciprocal",
180+
"remainder",
181+
"right_shift",
182+
"rint",
183+
"sign",
184+
"signbit",
185+
"sin",
186+
"sinh",
187+
"spacing",
188+
"sqrt",
189+
"square",
190+
"subtract",
191+
"tan",
192+
"tanh",
193+
"true_divide",
194+
"trunc",
195+
"vecdot",
196+
"vecmat",
197+
]

0 commit comments

Comments
 (0)