SciML / Optimization.jl

Mathematical Optimization in Julia. Local, global, gradient-based and derivative-free. Linear, Quadratic, Convex, Mixed-Integer, and Nonlinear Optimization in one simple, fast, and differentiable interface.
https://docs.sciml.ai/Optimization/stable/
MIT License
704 stars 77 forks source link

Support both float and array return extensions [Enzyme] #589

Closed wsmoses closed 11 months ago

wsmoses commented 11 months ago

Some of the SciML code returns either a float directly, or an array.

Let this support both conventions.

codecov[bot] commented 11 months ago

Codecov Report

Merging #589 (0ddba0f) into master (9820f1e) will decrease coverage by 0.73%. The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master    #589      +/-   ##
=========================================
- Coverage    9.81%   9.09%   -0.73%     
=========================================
  Files          40      40              
  Lines        2536    2539       +3     
=========================================
- Hits          249     231      -18     
- Misses       2287    2308      +21     
Files Changed Coverage Δ
ext/OptimizationEnzymeExt.jl 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more