Skip to content

Commit 13bdcfd

Browse files
Move dpnp.special to dpnp.scipy.special
1 parent 0ef07b2 commit 13bdcfd

File tree

6 files changed

+19
-20
lines changed

6 files changed

+19
-20
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ repos:
113113
"--disable=redefined-builtin",
114114
"--disable=unused-wildcard-import"
115115
]
116-
files: '^dpnp/(dpnp_iface.*|fft|linalg|scipy|special|dpnp_array)'
116+
files: '^dpnp/(dpnp_iface.*|fft|linalg|scipy|dpnp_array)'
117117
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
118118
rev: v2.15.0
119119
hooks:

dpnp/dpnp_iface.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
from dpnp.linalg import *
5656
from dpnp.memory import *
5757
from dpnp.random import *
58-
from dpnp.special import *
5958

6059
__all__ = [
6160
"are_same_logical_tensors",

dpnp/scipy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
DPNP functionality, reusing DPNP and oneMKL implementations underneath.
3535
"""
3636

37-
from . import linalg
37+
from . import linalg, special
3838

39-
__all__ = ["linalg"]
39+
__all__ = ["linalg", "special"]

dpnp/special/__init__.py renamed to dpnp/scipy/special/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
# *****************************************************************************
2626

2727
"""
28-
``dpnp.special``
29-
================
28+
``dpnp.scipy.special``
29+
======================
3030
3131
The submodule provides a large collection of mathematical functions that are
3232
widely used in science and engineering. It includes special functions of

dpnp/special/_erf.py renamed to dpnp/scipy/special/_erf.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
3030
Notes
3131
-----
32-
This module is a face or public interface file for the library
32+
This module exposes the public interface for ``dpnp.scipy.special``.
3333
it contains:
3434
- Interface functions
3535
- documentation for the functions
@@ -92,11 +92,11 @@ def __call__(self, x, out=None): # pylint: disable=signature-differs
9292
9393
See Also
9494
--------
95-
:obj:`dpnp.special.erfc` : Complementary error function.
96-
:obj:`dpnp.special.erfinv` : Inverse of the error function.
97-
:obj:`dpnp.special.erfcinv` : Inverse of the complementary error function.
98-
:obj:`dpnp.special.erfcx` : Scaled complementary error function.
99-
:obj:`dpnp.special.erfi` : Imaginary error function.
95+
:obj:`dpnp.scipy.special.erfc` : Complementary error function.
96+
:obj:`dpnp.scipy.special.erfinv` : Inverse of the error function.
97+
:obj:`dpnp.scipy.special.erfcinv` : Inverse of the complementary error function.
98+
:obj:`dpnp.scipy.special.erfcx` : Scaled complementary error function.
99+
:obj:`dpnp.scipy.special.erfi` : Imaginary error function.
100100
101101
Notes
102102
-----
@@ -113,7 +113,7 @@ def __call__(self, x, out=None): # pylint: disable=signature-differs
113113
--------
114114
>>> import dpnp as np
115115
>>> x = np.linspace(-3, 3, num=5)
116-
>>> np.special.erf(x)
116+
>>> np.scipy.special.erf(x)
117117
array([[-0.99997791, -0.96610515, 0. , 0.96610515, 0.99997791])
118118
119119
"""
@@ -148,17 +148,17 @@ def __call__(self, x, out=None): # pylint: disable=signature-differs
148148
149149
See Also
150150
--------
151-
:obj:`dpnp.special.erf` : Gauss error function.
152-
:obj:`dpnp.special.erfinv` : Inverse of the error function.
153-
:obj:`dpnp.special.erfcinv` : Inverse of the complementary error function.
154-
:obj:`dpnp.special.erfcx` : Scaled complementary error function.
155-
:obj:`dpnp.special.erfi` : Imaginary error function.
151+
:obj:`dpnp.scipy.special.erf` : Gauss error function.
152+
:obj:`dpnp.scipy.special.erfinv` : Inverse of the error function.
153+
:obj:`dpnp.scipy.special.erfcinv` : Inverse of the complementary error function.
154+
:obj:`dpnp.scipy.special.erfcx` : Scaled complementary error function.
155+
:obj:`dpnp.scipy.special.erfi` : Imaginary error function.
156156
157157
Examples
158158
--------
159159
>>> import dpnp as np
160160
>>> x = np.linspace(-3, 3, num=5)
161-
>>> np.special.erfc(x)
161+
>>> np.scipy.special.erfc(x)
162162
array([[-0.99997791, -0.96610515, 0. , 0.96610515, 0.99997791])
163163
164164
"""

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"dpnp.linalg",
3838
"dpnp.memory",
3939
"dpnp.random",
40-
"dpnp.special",
4140
"dpnp.scipy",
4241
"dpnp.scipy.linalg",
42+
"dpnp.scipy.special",
4343
],
4444
package_data={
4545
"dpnp": [

0 commit comments

Comments
 (0)