mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-27 01:10:28 +01:00
Merge branch 'master' into enh/sparsification
This commit is contained in:
commit
7a39775fff
@ -191,7 +191,7 @@ function check_property_T(sett::Settings)
|
||||
|
||||
if λ > 0
|
||||
|
||||
isapprox(eigvals(P), abs(eigvals(P)), atol=sett.tol) ||
|
||||
isapprox(eigvals(P), abs.(eigvals(P)), atol=sett.tol) ||
|
||||
warn("The solution matrix doesn't seem to be positive definite!")
|
||||
# @assert P == Symmetric(P)
|
||||
Q = real(sqrtm(Symmetric(P)))
|
||||
|
@ -130,7 +130,7 @@ function reconstruct_sol{T<:GroupElem, S<:AbstractArray}(mreps::Dict{T, S},
|
||||
return recP
|
||||
end
|
||||
|
||||
function Cstar_repr(x::GroupRingElem, mreps)
|
||||
function Cstar_repr(x::GroupRingElem, mreps::Dict)
|
||||
k = collect(keys(mreps))[1]
|
||||
res = zeros(size(mreps[k])...)
|
||||
|
||||
|
@ -147,10 +147,9 @@ function setup_logging(name::String)
|
||||
|
||||
Memento.add_handler(logger,
|
||||
Memento.DefaultHandler(joinpath(name,"full_$(string((now()))).log"),
|
||||
Memento.DefaultFormatter("{date}| {msg}")),
|
||||
"full_log")
|
||||
Memento.DefaultFormatter("{date}| {msg}")), "full_log")
|
||||
|
||||
e = redirect_stderr(logger.handlers["full_log"].io)
|
||||
# e = redirect_stderr(logger.handlers["full_log"].io)
|
||||
|
||||
return logger
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user