Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix promotion and adjoint for complex expressions #3150

Merged
merged 4 commits into from
Dec 15, 2022
Merged

Fix promotion and adjoint for complex expressions #3150

merged 4 commits into from
Dec 15, 2022

Conversation

blegat
Copy link
Member

@blegat blegat commented Dec 13, 2022

Some of the matrices constructed in the tests had eltype Any or GenericAffExpr with no type argument. With this PR, the eltype is now promoted properly.
Secondly, adjoint should redirect to conj in case coefficients are complex.

@codecov
Copy link

codecov bot commented Dec 13, 2022

Codecov Report

Base: 97.69% // Head: 97.69% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (c8cc9a0) compared to base (856dcc6).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3150   +/-   ##
=======================================
  Coverage   97.69%   97.69%           
=======================================
  Files          33       33           
  Lines        4460     4462    +2     
=======================================
+ Hits         4357     4359    +2     
  Misses        103      103           
Impacted Files Coverage Δ
src/JuMP.jl 95.80% <100.00%> (+0.03%) ⬆️
src/aff_expr.jl 97.25% <100.00%> (+0.04%) ⬆️
src/operators.jl 96.03% <100.00%> (+0.03%) ⬆️
src/quad_expr.jl 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/aff_expr.jl Show resolved Hide resolved
@odow odow merged commit d986530 into master Dec 15, 2022
@odow odow deleted the bl/adjoint branch December 15, 2022 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants