Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Also, that release drops support for Python 3.9, making Python 3.10 the minimum
* Aligned documentation with NumPy and CuPy style by using short function names [#2633](https://github.com/IntelPython/dpnp/pull/2633)
* Added the missing positional-only and keyword-only parameter markers to bring the ufunc signatures into alignment with NumPy [#2660](https://github.com/IntelPython/dpnp/pull/2660)
* Redesigned `dpnp.modf` function to be a part of `ufunc` and `vm` pybind11 extensions [#2654](https://github.com/IntelPython/dpnp/pull/2654)
* Unified public API definitions in `dpnp.linalg` and `dpnp.scipy` submodules [#2663](https://github.com/IntelPython/dpnp/pull/2663)

### Deprecated

Expand Down
38 changes: 34 additions & 4 deletions dpnp/linalg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@

from .dpnp_iface_linalg import (
LinAlgError,
)
from .dpnp_iface_linalg import __all__ as __all__linalg
from .dpnp_iface_linalg import (
cholesky,
cond,
cross,
Expand Down Expand Up @@ -74,4 +71,37 @@
vector_norm,
)

__all__ = __all__linalg
__all__ = [
"LinAlgError",
"cholesky",
"cond",
"cross",
"det",
"diagonal",
"eig",
"eigh",
"eigvals",
"eigvalsh",
"inv",
"lstsq",
"matmul",
"matrix_norm",
"matrix_power",
"matrix_rank",
"matrix_transpose",
"multi_dot",
"norm",
"outer",
"pinv",
"qr",
"solve",
"svd",
"svdvals",
"slogdet",
"tensordot",
"tensorinv",
"tensorsolve",
"trace",
"vecdot",
"vector_norm",
]
35 changes: 0 additions & 35 deletions dpnp/linalg/dpnp_iface_linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,41 +72,6 @@
dpnp_svd,
)

__all__ = [
"LinAlgError",
"cholesky",
"cond",
"cross",
"det",
"diagonal",
"eig",
"eigh",
"eigvals",
"eigvalsh",
"inv",
"lstsq",
"matmul",
"matrix_norm",
"matrix_power",
"matrix_rank",
"matrix_transpose",
"multi_dot",
"norm",
"outer",
"pinv",
"qr",
"solve",
"svd",
"svdvals",
"slogdet",
"tensordot",
"tensorinv",
"tensorsolve",
"trace",
"vecdot",
"vector_norm",
]

# Need to set the module explicitly, because it's initially exposed by LAPACK
# pybind11 extension and to add the docstrings
LinAlgError.__module__ = "dpnp.linalg"
Expand Down
21 changes: 0 additions & 21 deletions dpnp/linalg/dpnp_utils_linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,27 +54,6 @@
import dpnp.backend.extensions.lapack._lapack_impl as li
from dpnp.dpnp_utils import get_usm_allocations

__all__ = [
"assert_2d",
"assert_stacked_2d",
"assert_stacked_square",
"dpnp_cholesky",
"dpnp_cond",
"dpnp_det",
"dpnp_eigh",
"dpnp_inv",
"dpnp_lstsq",
"dpnp_matrix_power",
"dpnp_matrix_rank",
"dpnp_multi_dot",
"dpnp_norm",
"dpnp_pinv",
"dpnp_qr",
"dpnp_slogdet",
"dpnp_solve",
"dpnp_svd",
]


# pylint:disable=missing-class-docstring
class EighResult(NamedTuple):
Expand Down
5 changes: 0 additions & 5 deletions dpnp/scipy/linalg/_decomp_lu.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
dpnp_lu_solve,
)

__all__ = [
"lu_factor",
"lu_solve",
]


def lu_factor(a, overwrite_a=False, check_finite=True):
"""
Expand Down
5 changes: 0 additions & 5 deletions dpnp/scipy/linalg/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
from dpnp.dpnp_utils import get_usm_allocations
from dpnp.linalg.dpnp_utils_linalg import _common_type

__all__ = [
"dpnp_lu_factor",
"dpnp_lu_solve",
]


def _align_lu_solve_broadcast(lu, b):
"""Align LU and RHS batch dimensions with SciPy-like rules."""
Expand Down
2 changes: 0 additions & 2 deletions dpnp/scipy/special/_erf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
import dpnp.backend.extensions.ufunc._ufunc_impl as ufi
from dpnp.dpnp_algo.dpnp_elementwise_common import DPNPUnaryFunc

__all__ = ["erf", "erfc", "erfcinv", "erfcx", "erfinv"]


# pylint: disable=too-few-public-methods
class DPNPErf(DPNPUnaryFunc):
Expand Down
Loading