From 7c361420b4f81713f593ebbb5c924121c1f2d19d Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Fri, 18 Nov 2022 15:11:25 +0100 Subject: MAINT: Move set_module to numpy.core to use without C import --- numpy/linalg/linalg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/linalg') 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: -- cgit v1.2.1