diff --git a/src/base/ops.rs b/src/base/ops.rs index 3566a2b5..f389eae5 100644 --- a/src/base/ops.rs +++ b/src/base/ops.rs @@ -876,10 +876,8 @@ impl> Matrix { for e in iter { let ae = abs(*e); - if let Some(ae_ordering) = ae.partial_cmp(&max) { - if ae_ordering == ordering { + if ae.partial_cmp(&max) == Some(ordering) { max = ae; - } } }