1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-09-05 06:45:40 +02:00

fix equality of GroupRing elements with different types of coeffs

eg. SparseVector vs Vector
This commit is contained in:
kalmar 2017-05-17 17:41:34 +02:00
parent 4491078b9e
commit e18e90ddaf

View File

@ -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