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:
parent
4491078b9e
commit
e18e90ddaf
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user