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
Hi,
I'm running Julia 0.2.1 (64bit) on mac.
When I call test/qp_01.jl (also qp_02.jl), I got the following error message:
ERROR: access to undefined reference
in unsafe_copy! at array.jl:135
in copy! at array.jl:51
in getindex at array.jl:296
in splice! at array.jl:814
in splice! at array.jl:807
in - at sparse/sparsematrix.jl:498
in - at sparse/sparsematrix.jl:407
in add_qpterms! at /Users/yuichirowaki/.julia/CPLEX/src/cpx_quad.jl:11
in add_qpterms! at /Users/yuichirowaki/.julia/CPLEX/src/cpx_quad.jl:37
in include at boot.jl:238
in include_from_node1 at loading.jl:114
in process_options at client.jl:303
in _start at client.jl:389
at /Users/yuichirowaki/.julia/CPLEX/test/qp_01.jl:19
This was solved by changing the line 10 in src/cpx_quad.jl from
Q = Q + Q' - spdiagm(diag(Q))
to
Q = Q + Q' - spdiagm(convert(Array{Cdouble},diag(Q)))
It seems, when applied to a sparse matrix, diag returns an array of type ANY and this was causing the problem.
The text was updated successfully, but these errors were encountered:
Hi,
I'm running Julia 0.2.1 (64bit) on mac.
When I call test/qp_01.jl (also qp_02.jl), I got the following error message:
ERROR: access to undefined reference
in unsafe_copy! at array.jl:135
in copy! at array.jl:51
in getindex at array.jl:296
in splice! at array.jl:814
in splice! at array.jl:807
in - at sparse/sparsematrix.jl:498
in - at sparse/sparsematrix.jl:407
in add_qpterms! at /Users/yuichirowaki/.julia/CPLEX/src/cpx_quad.jl:11
in add_qpterms! at /Users/yuichirowaki/.julia/CPLEX/src/cpx_quad.jl:37
in include at boot.jl:238
in include_from_node1 at loading.jl:114
in process_options at client.jl:303
in _start at client.jl:389
at /Users/yuichirowaki/.julia/CPLEX/test/qp_01.jl:19
This was solved by changing the line 10 in src/cpx_quad.jl from
Q = Q + Q' - spdiagm(diag(Q))
to
Q = Q + Q' - spdiagm(convert(Array{Cdouble},diag(Q)))
It seems, when applied to a sparse matrix, diag returns an array of type ANY and this was causing the problem.
The text was updated successfully, but these errors were encountered: