Function lattice_qcd_rs::su3::random_su3

source ·
pub fn random_su3<Rng>(rng: &mut Rng) -> CMatrix3where
    Rng: Rng + ?Sized,
Expand description

Generate Uniformly distributed SU(3) matrix.

Example

for _ in 0..10 {
    assert_matrix_is_su_3!(random_su3(&mut rng), 9_f64 * f64::EPSILON);
}