1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2025-01-07 13:10:28 +01:00

make equality_data immutable operation

This commit is contained in:
Marek Kaluba 2023-03-22 21:45:04 +01:00
parent 038fc29b81
commit 751850568c
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -1,6 +1,6 @@
## Hashing
equality_data(g::AbstractFPGroupElement) = (normalform!(g); word(g))
equality_data(g::AbstractFPGroupElement) = word(g)
bitget(h::UInt, n::Int) = Bool((h & (1 << n)) >> n)
bitclear(h::UInt, n::Int) = h & ~(1 << n)