1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-24 02:00:30 +01:00

endof -> lastindex

This commit is contained in:
kalmarek 2019-01-28 08:47:40 +01:00
parent 581097b7d3
commit 8e4dd2072c
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -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