Semi-unitary test checks for if rows or cols are orthonomal

This commit is contained in:
metric-space 2021-12-30 21:18:58 -05:00
parent ae6fda7dc7
commit 498d7e3d4c

View File

@ -161,7 +161,7 @@ mod proptest_tests {
assert_relative_eq!(m, &p* &u, epsilon = 1.0e-5);
// semi-unitary check
//assert!(u.is_orthogonal(1.0e-5));
assert!(u.is_orthogonal(1.0e-5) || u.transpose().is_orthogonal(1.0e-5));
// hermitian check
assert_relative_eq!(p, p.adjoint(), epsilon = 1.0e-5);