Function lattice_qcd_rs::su2::project_to_su2_unorm
source · pub fn project_to_su2_unorm(m: CMatrix2) -> CMatrix2
Expand description
Take any 2x2 matrix and project it to a matrix X
such that X / X.determinant().modulus().sqrt()
is SU(2).
Examples
see project_to_su2
let m = CMatrix2::zeros();
assert_eq_matrix!(project_to_su2_unorm(m), m, f64::EPSILON);