1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 02:05:30 +01:00

reduce defaults to freereduce now

This commit is contained in:
kalmarek 2020-03-24 23:56:30 +01:00
parent 8abebbbd0c
commit 8688d42250
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -165,16 +165,16 @@ function freereduce!(w::GWord)
return w
end
reduce!(w::GWord) = freereduce!(w)
@doc doc"""
reduce(W::GWord)
reduce(w::GWord)
> performs reduction/simplification of a group element (word in generators).
> The default reduction is the free group reduction, i.e. consists of
> multiplying adjacent symbols with the same `id` identifier and deleting the
> identity elements from `W.symbols`.
> The default reduction is the free group reduction
> More specific procedures should be dispatched on `GWord`s type parameter.
"""
reduce(W::GWord) = reduce!(deepcopy(W))
reduce(w::GWord) = reduce!(deepcopy(w))
@doc doc"""
gens(G::AbstractFPGroups)