fix equality of GroupRing elements with different types of coeffs
eg. SparseVector vs Vector
This commit is contained in:
parent
4491078b9e
commit
e18e90ddaf
|
@ -193,7 +193,7 @@ function (==)(X::GroupRingElem, Y::GroupRingElem)
|
||||||
if eltype(X.coeffs) != eltype(Y.coeffs)
|
if eltype(X.coeffs) != eltype(Y.coeffs)
|
||||||
warn("Comparing elements with different coeffs Rings!")
|
warn("Comparing elements with different coeffs Rings!")
|
||||||
end
|
end
|
||||||
X.coeffs == Y.coeffs || return false
|
all(X.coeffs .== Y.coeffs) || return false
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue