(self, x, tol)
| 130 | self.assertAllClose(a_recon, a, rtol=tol, atol=tol) |
| 131 | |
| 132 | def CheckUnitary(self, x, tol): |
| 133 | # Tests that x[...,:,:]^H * x[...,:,:] is close to the identity. |
| 134 | xx = math_ops.matmul(x, x, adjoint_a=True) |
| 135 | identity = array_ops.matrix_band_part(array_ops.ones_like(xx), 0, 0) |
| 136 | self.assertAllClose(identity, xx, atol=tol) |
| 137 | |
| 138 | @test_util.run_v1_only("b/120545219") |
| 139 | def Test(self): |
no test coverage detected