summaryrefslogtreecommitdiff
path: root/numpy/linalg
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2022-11-18 15:11:25 +0100
committerSebastian Berg <sebastianb@nvidia.com>2022-11-24 17:03:42 +0100
commit7c361420b4f81713f593ebbb5c924121c1f2d19d (patch)
tree4fa5c173c3e4df5dfdb9b14b9b0988db0bc69e91 /numpy/linalg
parent72af24df557802015820714aaa3d105d53216431 (diff)
downloadnumpy-7c361420b4f81713f593ebbb5c924121c1f2d19d.tar.gz
MAINT: Move set_module to numpy.core to use without C import
Diffstat (limited to 'numpy/linalg')
-rw-r--r--numpy/linalg/linalg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py
index 697193321..ee0fe6166 100644
--- a/numpy/linalg/linalg.py
+++ b/numpy/linalg/linalg.py
@@ -18,6 +18,7 @@ import functools
import operator
import warnings
+from .._utils import set_module
from numpy.core import (
array, asarray, zeros, empty, empty_like, intc, single, double,
csingle, cdouble, inexact, complexfloating, newaxis, all, Inf, dot,
@@ -28,7 +29,6 @@ from numpy.core import (
reciprocal
)
from numpy.core.multiarray import normalize_axis_index
-from numpy.core.overrides import set_module
from numpy.core import overrides
from numpy.lib.twodim_base import triu, eye
from numpy.linalg import _umath_linalg
@@ -943,7 +943,7 @@ def qr(a, mode='reduced'):
return wrap(a)
# mc is the number of columns in the resulting q
- # matrix. If the mode is complete then it is
+ # matrix. If the mode is complete then it is
# same as number of rows, and if the mode is reduced,
# then it is the minimum of number of rows and columns.
if mode == 'complete' and m > n: