jump-dev / JuMP.jl

Modeling language for Mathematical Optimization (linear, mixed-integer, conic, semidefinite, nonlinear)
http://jump.dev/JuMP.jl/
Other
2.17k stars 390 forks source link

LinearAlgebra.hermitian is incorrect #3692

Closed blegat closed 4 months ago

blegat commented 4 months ago

https://github.com/jump-dev/JuMP.jl/blob/119569556f5fd28d12b012f4c94d8dfdaca6d65a/src/JuMP.jl#L1058 doesn't seem to match the docstring of LinearAlgebra.hermitian:

If A is a Number, its real part is returned converted back to the input type.