# HG changeset patch # User Tuomo Valkonen # Date 1746076089 18000 # Node ID d97fcf22a61c144da7d82f1a389aadaad03fe2fc # Parent ed8124f1af1da7edb01f09a6515272cbc083b417 is_zero default diff -r ed8124f1af1d -r d97fcf22a61c src/norms.rs --- a/src/norms.rs Thu May 01 00:01:15 2025 -0500 +++ b/src/norms.rs Thu May 01 00:08:09 2025 -0500 @@ -226,7 +226,9 @@ // fn similar_origin(&self) -> Self; - fn is_zero(&self) -> bool; + fn is_zero(&self) -> bool { + self.norm_() == F::ZERO + } } pub trait HasDual: Normed {