diff options
author | alex <argriffi@ncsu.edu> | 2014-05-22 18:18:46 -0400 |
---|---|---|
committer | alex <argriffi@ncsu.edu> | 2014-05-22 18:18:46 -0400 |
commit | fea4421d9065b452fb16eeaabb07732e4aec3ccb (patch) | |
tree | c0a01831f93dc81034ec3c9e009e01ba63626060 /numpy/linalg/tests/test_regression.py | |
parent | 9dd46ee2ed9fc55942d9ec13532d817c3b36d322 (diff) | |
download | numpy-fea4421d9065b452fb16eeaabb07732e4aec3ccb.tar.gz |
BUG: svd ufunc typo
Diffstat (limited to 'numpy/linalg/tests/test_regression.py')
-rw-r--r-- | numpy/linalg/tests/test_regression.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/numpy/linalg/tests/test_regression.py b/numpy/linalg/tests/test_regression.py index b0b2b2e30..61aa41e06 100644 --- a/numpy/linalg/tests/test_regression.py +++ b/numpy/linalg/tests/test_regression.py @@ -73,7 +73,15 @@ class TestRegression(TestCase): # See gh-4442, 64bit would require very large/slow matrices. x = np.eye(1000, 66) np.linalg.svd(x) - + + def test_svd_no_uv(self): + # gh-4733 + for shape in (3, 4), (4, 4), (4, 3): + for t in float, complex: + a = np.ones(shape, dtype=t) + w = linalg.svd(a, compute_uv=False) + c = np.count_nonzero(np.absolute(w) > 0.5) + assert_equal(c, 1) if __name__ == '__main__': run_module_suite() |