Skip to content

Commit 89ecc90

Browse files
committed
MAINT: Make numpy.linalg.linalg private
Original NumPy Commit: 58999eafd76c0f7b2e1cd5d6f43c09ade3a1cd9a
1 parent 2454bc5 commit 89ecc90

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

array_api_strict/linalg.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@ def slogdet(x: Array, /) -> SlogdetResult:
297297
# To workaround this, the below is the code from np.linalg.solve except
298298
# only calling solve1 in the exactly 1D case.
299299
def _solve(a, b):
300-
from numpy.linalg.linalg import (_makearray, _assert_stacked_2d,
301-
_assert_stacked_square, _commonType,
302-
isComplexType, _raise_linalgerror_singular)
300+
from numpy.linalg._linalg import (
301+
_makearray, _assert_stacked_2d, _assert_stacked_square,
302+
_commonType, isComplexType, _raise_linalgerror_singular
303+
)
303304
from numpy.linalg import _umath_linalg
304305

305306
a, _ = _makearray(a)

0 commit comments

Comments
 (0)