diff --git a/src/base/componentwise.rs b/src/base/componentwise.rs index f5ace2b8..98a00eba 100644 --- a/src/base/componentwise.rs +++ b/src/base/componentwise.rs @@ -76,7 +76,7 @@ impl> Matrix { N: Ord, DefaultAllocator: Allocator, { - self.zip_map(rhs, |a, b| a.min(b)) + self.zip_map(rhs, |a, b| a.max(b)) } // FIXME: add other operators like component_ln, component_pow, etc. ?