From aae4ee57c7f2b36007403983ba5a6af0dd3dff9c Mon Sep 17 00:00:00 2001 From: kalmar Date: Thu, 8 Jun 2017 21:47:09 +0200 Subject: [PATCH] deparametrise distance_to_cone to provide generic version --- src/checksolution.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/checksolution.jl b/src/checksolution.jl index 06d8907..30c7e9a 100644 --- a/src/checksolution.jl +++ b/src/checksolution.jl @@ -95,7 +95,7 @@ function distance_to_cone{T<:Rational, S<:Interval}(λ::T, sqrt_matrix::Array{S, return distance_to_cone 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_diff = EOI(Δ, λ) - SOS