You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should be reproducible with nalgebra = { version = "0.32.4", features = ["rand"] }
use nalgebra::Matrix3;
fn main() {
let id = Matrix3::<f32>::identity();
loop {
let r = Matrix3::<f32>::new_random();
let m = id + r * 0.000000000000000000001;
if m == id {
panic!("too small")
}
let svd = m.svd_unordered(true, true);
if svd.singular_values.iter().any(|s| (s - 1.).abs() > 0.1) {
println!("Input Matrix: {m:#?}");
println!("Singular Values: {:#?}", svd.singular_values);
panic!();
}
}
}
This should be reproducible with
nalgebra = { version = "0.32.4", features = ["rand"] }
Example output:
The text was updated successfully, but these errors were encountered: