1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-14 06:10:28 +01:00

make verbose kwarg in BlockDecomposition

This commit is contained in:
kalmarek 2020-10-18 01:08:23 +02:00
parent c071520c3a
commit 649894236c
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -11,7 +11,7 @@ struct BlockDecomposition{T<:AbstractArray{Float64, 2}, GEl<:GroupElem, P<:Gener
dims::Vector{Int}
end
function BlockDecomposition(RG::GroupRing, autS::Group, verbose=true)
function BlockDecomposition(RG::GroupRing, autS::Group; verbose=true)
verbose && @info "Decomposing basis of RG into orbits of" autS
@time orbs = orbit_decomposition(autS, RG.basis, RG.basis_dict)
@assert sum(length(o) for o in orbs) == length(RG.basis)
@ -41,7 +41,7 @@ function BlockDecomposition(RG::GroupRing, autS::Group, verbose=true)
return BlockDecomposition(orbs, preps, Uπs, dimensions)
end
function decimate(od::BlockDecomposition, verbose=true)
function decimate(od::BlockDecomposition; verbose=true)
nzros = [i for i in 1:length(od.Uπs) if !isempty(od.Uπs[i])]
Us = sparsify!.(od.Uπs, eps(Float64) * 1e4, verbose = verbose)[nzros]