From e18e90ddafe2fdc14c737c435804e47971e71ed7 Mon Sep 17 00:00:00 2001 From: kalmar Date: Wed, 17 May 2017 17:41:34 +0200 Subject: [PATCH] fix equality of GroupRing elements with different types of coeffs eg. SparseVector vs Vector --- src/GroupRings.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index ec98485..51fbf7b 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -193,7 +193,7 @@ function (==)(X::GroupRingElem, Y::GroupRingElem) if eltype(X.coeffs) != eltype(Y.coeffs) warn("Comparing elements with different coeffs Rings!") end - X.coeffs == Y.coeffs || return false + all(X.coeffs .== Y.coeffs) || return false return true end