mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-12-25 02:15:29 +01:00
make verbose kwarg in BlockDecomposition
This commit is contained in:
parent
c071520c3a
commit
649894236c
@ -11,7 +11,7 @@ struct BlockDecomposition{T<:AbstractArray{Float64, 2}, GEl<:GroupElem, P<:Gener
|
|||||||
dims::Vector{Int}
|
dims::Vector{Int}
|
||||||
end
|
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
|
verbose && @info "Decomposing basis of RG into orbits of" autS
|
||||||
@time orbs = orbit_decomposition(autS, RG.basis, RG.basis_dict)
|
@time orbs = orbit_decomposition(autS, RG.basis, RG.basis_dict)
|
||||||
@assert sum(length(o) for o in orbs) == length(RG.basis)
|
@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)
|
return BlockDecomposition(orbs, preps, Uπs, dimensions)
|
||||||
end
|
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])]
|
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]
|
Us = sparsify!.(od.Uπs, eps(Float64) * 1e4, verbose = verbose)[nzros]
|
||||||
|
Loading…
Reference in New Issue
Block a user