(self)
| 1393 | np.testing.assert_equal(result[1], [[2, 0, 3, 1], [5, 7, 6, 4]]) |
| 1394 | |
| 1395 | def testQR(self): |
| 1396 | a = np.array( |
| 1397 | [[4, 6, 8, 10], [6, 45, 54, 63], [8, 54, 146, 166], [10, 63, 166, 310]], |
| 1398 | dtype=np.float32) |
| 1399 | c = self._NewComputation() |
| 1400 | c.QR(c.Constant(a), full_matrices=True) |
| 1401 | q, r = self._Execute(c, ()) |
| 1402 | np.testing.assert_allclose(np.dot(q, r), a, rtol=1e-4) |
| 1403 | |
| 1404 | def testEigh(self): |
| 1405 | a = np.array( |
nothing calls this directly
no test coverage detected