From 8e4dd2072c48373147524916cf838d944e84f6c0 Mon Sep 17 00:00:00 2001 From: kalmarek Date: Mon, 28 Jan 2019 08:47:40 +0100 Subject: [PATCH] endof -> lastindex --- src/sos_sdps.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sos_sdps.jl b/src/sos_sdps.jl index 22796e9..82b7ed6 100644 --- a/src/sos_sdps.jl +++ b/src/sos_sdps.jl @@ -96,7 +96,7 @@ function SOS_problem(X::GroupRingElem, orderunit::GroupRingElem, data::OrbitData end function constraintLHS!(M, cnstr, Us, Ust, dims, eps=1000*eps(eltype(first(M)))) - for π in 1:endof(Us) + for π in 1:lastindex(Us) M[π] = dims[π].*PropertyT.clamp_small!(Ust[π]*cnstr*Us[π], eps) end end