mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-26 17:05:27 +01:00
check_distance_to_cone returns single float
This commit is contained in:
parent
e5366b7305
commit
b43482325d
@ -219,10 +219,8 @@ function check_property_T(name::String, S, Id, solver, upper_bound, tol, radius)
|
||||
warn("The solution matrix doesn't seem to be positive definite!")
|
||||
@logtime LOGGER Q = real(sqrtm(Symmetric(P)))
|
||||
|
||||
sgap = distance_to_positive_cone(Δ, λ, Q, 2*radius, LOGGER)
|
||||
if isa(sgap, Interval)
|
||||
sgap = sgap.lo
|
||||
end
|
||||
sgap = check_distance_to_cone(Δ, λ, Q, 2*radius, LOGGER)
|
||||
|
||||
if sgap > 0
|
||||
info(LOGGER, "λ ≥ $(Float64(trunc(sgap,12)))")
|
||||
Kazhdan_κ = Kazhdan_from_sgap(sgap, length(S))
|
||||
|
Loading…
Reference in New Issue
Block a user