mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-07-17 10:55:30 +02:00
fix indentation
This commit is contained in:
parent
2d89c38657
commit
589e1882cd
@ -183,19 +183,19 @@ function rankOne_projections(BN::WreathProduct, T::Type=Rational{Int})
|
|||||||
return all_projs
|
return all_projs
|
||||||
end
|
end
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# General Groups Misc
|
# General Groups Misc
|
||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
doc"""
|
doc"""
|
||||||
products(X::Vector{GroupElem}, Y::Vector{GroupElem}, op=*)
|
products(X::Vector{GroupElem}, Y::Vector{GroupElem}, op=*)
|
||||||
> Returns a vector of all possible products (or `op(x,y)`), where $x\in X$ and
|
> Returns a vector of all possible products (or `op(x,y)`), where $x\in X$ and
|
||||||
> $y\in Y$ are group elements. You may specify which operation is used when
|
> $y\in Y$ are group elements. You may specify which operation is used when
|
||||||
> forming 'products' by adding `op` (which is `*` by default).
|
> forming 'products' by adding `op` (which is `*` by default).
|
||||||
"""
|
"""
|
||||||
function products{T<:GroupElem}(X::AbstractVector{T}, Y::AbstractVector{T}, op=*)
|
function products{T<:GroupElem}(X::AbstractVector{T}, Y::AbstractVector{T}, op=*)
|
||||||
result = Vector{T}()
|
result = Vector{T}()
|
||||||
seen = Set{T}()
|
seen = Set{T}()
|
||||||
for x in X
|
for x in X
|
||||||
@ -208,18 +208,18 @@ function rankOne_projections(BN::WreathProduct, T::Type=Rational{Int})
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
||||||
doc"""
|
doc"""
|
||||||
generateGroup(gens::Vector{GroupElem}, r=2, Id=parent(first(gens))(), op=*)
|
generateGroup(gens::Vector{GroupElem}, r=2, Id=parent(first(gens))(), op=*)
|
||||||
> Produces all elements of a group generated by elements in `gens` in ball of
|
> Produces all elements of a group generated by elements in `gens` in ball of
|
||||||
> radius `r` (word-length metric induced by `gens`).
|
> radius `r` (word-length metric induced by `gens`).
|
||||||
> If `r(=2)` is specified the procedure will terminate after generating ball
|
> If `r(=2)` is specified the procedure will terminate after generating ball
|
||||||
> of radius `r` in the word-length metric induced by `gens`.
|
> of radius `r` in the word-length metric induced by `gens`.
|
||||||
> The identity element `Id` and binary operation function `op` can be supplied
|
> The identity element `Id` and binary operation function `op` can be supplied
|
||||||
> to e.g. take advantage of additive group structure.
|
> to e.g. take advantage of additive group structure.
|
||||||
"""
|
"""
|
||||||
function generateGroup{T<:GroupElem}(gens::Vector{T}, r=2, Id::T=parent(first(gens))(), op=*)
|
function generateGroup{T<:GroupElem}(gens::Vector{T}, r=2, Id::T=parent(first(gens))(), op=*)
|
||||||
n = 0
|
n = 0
|
||||||
R = 1
|
R = 1
|
||||||
elts = gens
|
elts = gens
|
||||||
@ -231,6 +231,6 @@ function rankOne_projections(BN::WreathProduct, T::Type=Rational{Int})
|
|||||||
elts = products(elts, gens, op)
|
elts = products(elts, gens, op)
|
||||||
end
|
end
|
||||||
return elts
|
return elts
|
||||||
end
|
end
|
||||||
|
|
||||||
end # of module Projections
|
end # of module Projections
|
||||||
|
Loading…
Reference in New Issue
Block a user