diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-08-18 11:16:06 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-08-18 11:20:45 -0600 |
commit | 8ddb0ce0acafe75d78df528b4d2540dfbf4b364d (patch) | |
tree | 156b23f48f14c7c1df699874007c521b5482d1a4 /numpy/linalg/tests | |
parent | 13b0b272f764c14bc4ac34f5b19fd030d9c611a4 (diff) | |
download | numpy-8ddb0ce0acafe75d78df528b4d2540dfbf4b364d.tar.gz |
STY: Giant whitespace cleanup.
Now is as good a time as any with open PR's at a low.
Diffstat (limited to 'numpy/linalg/tests')
-rw-r--r-- | numpy/linalg/tests/test_gufuncs_linalg.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/linalg/tests/test_gufuncs_linalg.py b/numpy/linalg/tests/test_gufuncs_linalg.py index d3299b7b5..c930ecff8 100644 --- a/numpy/linalg/tests/test_gufuncs_linalg.py +++ b/numpy/linalg/tests/test_gufuncs_linalg.py @@ -134,7 +134,7 @@ class MatrixGenerator(object): [2,1]] return a, b - + def real_symmetric_matrices(self): a = [[ 2 ,-1], [-1 , 2]] @@ -159,7 +159,7 @@ class MatrixGenerator(object): b = [[4+3j,3+2j], [2-1j,1+0j]] - + return a, b def real_matrices_vector(self): @@ -329,15 +329,15 @@ class TestDet(GeneralTestCase, TestCase): assert_equal(gula.slogdet(array([[0.0]], dtype=cdouble)), (0.0, -inf)) def test_types(self): - for typ in [(single, single), - (double, double), + for typ in [(single, single), + (double, double), (csingle, single), (cdouble, double)]: for x in [ [0], [[0]], [[[0]]] ]: assert_equal(gula.det(array(x, dtype=typ[0])).dtype, typ[0]) assert_equal(gula.slogdet(array(x, dtype=typ[0]))[0].dtype, typ[0]) assert_equal(gula.slogdet(array(x, dtype=typ[0]))[1].dtype, typ[1]) - + class TestEig(GeneralTestCase, TestCase): def do(self, a, b): @@ -377,7 +377,7 @@ class TestSolve(GeneralTestCase,TestCase): class TestChosolve(HermitianTestCase, TestCase): def do(self, a, b): - """ + """ inner1d not defined for complex types. todo: implement alternative test """ @@ -427,7 +427,7 @@ class UfuncTestCase(object): parameter = self.__class__.parameter a = np.array([parameter, parameter], dtype=typ) self.do(a) - + def test_single(self): self._check_for_type(single) |