1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-27 09:15:27 +01:00

deparametrise distance_to_cone to provide generic version

This commit is contained in:
kalmar 2017-06-08 21:47:09 +02:00
parent 98744d4f30
commit aae4ee57c7

View File

@ -95,7 +95,7 @@ function distance_to_cone{T<:Rational, S<:Interval}(λ::T, sqrt_matrix::Array{S,
return distance_to_cone return distance_to_cone
end end
function distance_to_cone{T<:AbstractFloat}(λ::T, sqrt_matrix::Array{T,2}, Δ::GroupRingElem{T}; len=4) function distance_to_cone(λ, sqrt_matrix::Array, Δ::GroupRingElem; len=4)
SOS = compute_SOS(sqrt_matrix, Δ) SOS = compute_SOS(sqrt_matrix, Δ)
SOS_diff = EOI(Δ, λ) - SOS SOS_diff = EOI(Δ, λ) - SOS