(self)
| 19 | class TestRegression: |
| 20 | |
| 21 | def test_eig_build(self): |
| 22 | # Ticket #652 |
| 23 | rva = array([1.03221168e+02 + 0.j, |
| 24 | -1.91843603e+01 + 0.j, |
| 25 | -6.04004526e-01 + 15.84422474j, |
| 26 | -6.04004526e-01 - 15.84422474j, |
| 27 | -1.13692929e+01 + 0.j, |
| 28 | -6.57612485e-01 + 10.41755503j, |
| 29 | -6.57612485e-01 - 10.41755503j, |
| 30 | 1.82126812e+01 + 0.j, |
| 31 | 1.06011014e+01 + 0.j, |
| 32 | 7.80732773e+00 + 0.j, |
| 33 | -7.65390898e-01 + 0.j, |
| 34 | 1.51971555e-15 + 0.j, |
| 35 | -1.51308713e-15 + 0.j]) |
| 36 | a = arange(13 * 13, dtype=float64) |
| 37 | a = a.reshape((13, 13)) |
| 38 | a = a % 17 |
| 39 | va, ve = linalg.eig(a) |
| 40 | va.sort() |
| 41 | rva.sort() |
| 42 | assert_array_almost_equal(va, rva) |
| 43 | |
| 44 | def test_eigh_build(self): |
| 45 | # Ticket 662. |
nothing calls this directly
no test coverage detected