Skip to content

Commit 9c96ced

Browse files
Move trigonometric function exports from dpnp_iface.py to __init__.py
1 parent a92158a commit 9c96ced

File tree

3 files changed

+46
-49
lines changed

3 files changed

+46
-49
lines changed

dpnp/__init__.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,52 @@
378378

379379
from .dpnp_iface_statistics import convolve
380380

381+
from .dpnp_iface_trigonometric import (
382+
arccos,
383+
arccosh,
384+
arcsin,
385+
arcsinh,
386+
arctan,
387+
arctan2,
388+
arctanh,
389+
asin,
390+
asinh,
391+
acos,
392+
acosh,
393+
atan,
394+
atan2,
395+
atanh,
396+
cbrt,
397+
cos,
398+
cosh,
399+
cumlogsumexp,
400+
deg2rad,
401+
degrees,
402+
exp,
403+
exp2,
404+
expm1,
405+
hypot,
406+
log,
407+
log10,
408+
log1p,
409+
log2,
410+
logaddexp,
411+
logaddexp2,
412+
logsumexp,
413+
rad2deg,
414+
radians,
415+
reciprocal,
416+
reduce_hypot,
417+
rsqrt,
418+
sin,
419+
sinh,
420+
sqrt,
421+
square,
422+
tan,
423+
tanh,
424+
unwrap,
425+
)
426+
381427
# -----------------------------------------------------------------------------
382428
# Sorting, searching, and counting
383429
# -----------------------------------------------------------------------------

dpnp/dpnp_iface.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@
7676
"synchronize_array_data",
7777
]
7878

79-
from dpnp.dpnp_iface_trigonometric import *
80-
from dpnp.dpnp_iface_trigonometric import __all__ as __all__trigonometric
8179
from dpnp.dpnp_iface_window import *
8280
from dpnp.dpnp_iface_window import __all__ as __all__window
8381

@@ -88,7 +86,6 @@
8886
use_origin_backend,
8987
)
9088

91-
__all__ += __all__trigonometric
9289
__all__ += __all__window
9390

9491

dpnp/dpnp_iface_trigonometric.py

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -53,52 +53,6 @@
5353
from .dpnp_algo.dpnp_elementwise_common import DPNPBinaryFunc, DPNPUnaryFunc
5454
from .dpnp_utils.dpnp_utils_reduction import dpnp_wrap_reduction_call
5555

56-
__all__ = [
57-
"arccos",
58-
"arccosh",
59-
"arcsin",
60-
"arcsinh",
61-
"arctan",
62-
"arctan2",
63-
"arctanh",
64-
"asin",
65-
"asinh",
66-
"acos",
67-
"acosh",
68-
"atan",
69-
"atan2",
70-
"atanh",
71-
"cbrt",
72-
"cos",
73-
"cosh",
74-
"cumlogsumexp",
75-
"deg2rad",
76-
"degrees",
77-
"exp",
78-
"exp2",
79-
"expm1",
80-
"hypot",
81-
"log",
82-
"log10",
83-
"log1p",
84-
"log2",
85-
"logaddexp",
86-
"logaddexp2",
87-
"logsumexp",
88-
"rad2deg",
89-
"radians",
90-
"reciprocal",
91-
"reduce_hypot",
92-
"rsqrt",
93-
"sin",
94-
"sinh",
95-
"sqrt",
96-
"square",
97-
"tan",
98-
"tanh",
99-
"unwrap",
100-
]
101-
10256

10357
def _get_accumulation_res_dt(a, dtype):
10458
"""Get a dtype used by dpctl for result array in accumulation function."""

0 commit comments

Comments
 (0)