Skip to content

Commit

Permalink
Simplified ordering check
Browse files Browse the repository at this point in the history
  • Loading branch information
w1th0utnam3 authored and sebcrozet committed Aug 27, 2019
1 parent a06b833 commit e170729
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/base/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -876,10 +876,8 @@ impl<N: Scalar, R: Dim, C: Dim, S: Storage<N, R, C>> Matrix<N, R, C, S> {
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;
}
}
}

Expand Down

0 comments on commit e170729

Please sign in to comment.