Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Mar 9, 2024
1 parent cbb681b commit f4495c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/macros/@constraint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,12 @@ function _functionize(
return LinearAlgebra.Symmetric(_functionize(v.data))
end

function _functionize(
v::LinearAlgebra.Hermitian{V},
) where {V<:AbstractVariableRef}
return LinearAlgebra.Hermitian(_functionize(v.data))
end

_functionize(x) = x

_functionize(::_MA.Zero) = false
Expand Down

0 comments on commit f4495c3

Please sign in to comment.