You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
current corrector is O(d^2 * side^3), this is O(d * side^3) but still ugly
functioncorrection(cone::LinMatrixIneq, primal_dir::AbstractVector)
@assert cone.grad_updated
sumAinvAs = cone.sumAinvAs
corr = cone.correction
dim = cone.dim
side = cone.side
A_aux = [zeros(dim) for _ in1:side, _ in1:side]
for i in1:dim, k in1:side, j in1:side
A_aux[j, k][i] = sumAinvAs[i][j, k]
end
B =zero(sumAinvAs[1])
for k in1:side, j in1:side
B[j, k] =dot(A_aux[j, k], primal_dir)
endfor i in1:dim
corr[i] =dot(B * sumAinvAs[i], B')
endreturn corr
end
The text was updated successfully, but these errors were encountered:
current corrector is
O(d^2 * side^3)
, this isO(d * side^3)
but still uglyThe text was updated successfully, but these errors were encountered: