This snippet manages to get the execution stuck when running. I know that the values are bad, but also an infinite loop might not be the most desirable outcome of this.
fn infitite_loop() {
let mut rot = na::SMatrix::<f64, 3,3>::zeros();
rot.fill(f64::NAN);
let _q = UnitQuaternion::from_matrix(&rot);
}
If the behavior is intended, apologies then.