diff --git a/src/base/norm.rs b/src/base/norm.rs index 90362be62..3bb678f5b 100644 --- a/src/base/norm.rs +++ b/src/base/norm.rs @@ -328,9 +328,9 @@ impl> Matrix { DefaultAllocator: Allocator, { let n = self.norm(); - let le = n.clone().simd_le(min_norm); + let valid = n.clone().simd_gt(min_norm); let val = self.unscale(n); - SimdOption::new(val, le) + SimdOption::new(val, valid) } /// Sets the magnitude of this vector unless it is smaller than `min_magnitude`.