mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-10-08 22:25:34 +02:00
remove isequal
This commit is contained in:
parent
89c5971cdd
commit
02eff23d17
@ -37,13 +37,6 @@ show{T}(io::IO, X::GroupAlgebraElement{T}) = print(io,
|
|||||||
"Element of Group Algebra over $T of length $(length(X)):\n $(X.coefficients)")
|
"Element of Group Algebra over $T of length $(length(X)):\n $(X.coefficients)")
|
||||||
|
|
||||||
|
|
||||||
function isequal{T, S}(X::GroupAlgebraElement{T}, Y::GroupAlgebraElement{S})
|
|
||||||
if T != S
|
|
||||||
warn("Comparing elements with different coefficients Rings!")
|
|
||||||
end
|
|
||||||
X.product_matrix == Y.product_matrix || return false
|
|
||||||
X.coefficients == Y.coefficients || return false
|
|
||||||
return true
|
|
||||||
end
|
end
|
||||||
|
|
||||||
(==)(X::GroupAlgebraElement, Y::GroupAlgebraElement) = isequal(X,Y)
|
(==)(X::GroupAlgebraElement, Y::GroupAlgebraElement) = isequal(X,Y)
|
||||||
|
Loading…
Reference in New Issue
Block a user