From 50ea55e877c50c5ea126fa265fee29492f437b88 Mon Sep 17 00:00:00 2001 From: "S.Brandeis" Date: Sun, 19 Jan 2020 03:06:36 +0100 Subject: [PATCH] Modify PartialEq for Matrix to allow comparison with all types of Matrix --- src/base/matrix.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/base/matrix.rs b/src/base/matrix.rs index 449d76cd..5d60b970 100644 --- a/src/base/matrix.rs +++ b/src/base/matrix.rs @@ -1344,10 +1344,15 @@ where S: Storage, {} -impl PartialEq for Matrix +impl PartialEq> for Matrix where - N: Scalar, + N: Scalar + PartialEq, + C: Dim + PartialEq, + C2: Dim, + R: Dim + PartialEq, + R2: Dim, S: Storage, + S2: Storage { #[inline] fn eq(&self, right: &Matrix) -> bool {