From 6bcf735bf18c9dfecd6a7bf46fa6e9cc21881d64 Mon Sep 17 00:00:00 2001 From: mandeep Date: Mon, 21 Oct 2019 17:27:31 -0400 Subject: [PATCH] Fix max in component_max --- src/base/componentwise.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. ?