Skip to content

Loosen types with ldiv! and dot of InverseDiagonal #878

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

Closed
wants to merge 1 commit into from

Conversation

jonniedie
Copy link
Contributor

All that was required to make this example work was to patch in a method for ldiv!. Loosening this type restriction should let even more array types work here. I've tested this and it doesn't look like it introduces any method ambiguities.

All that was required to make [this example](https://discourse.julialang.org/t/nonlinear-optimization-help-optim-jump-something-else/47163/2) work was to patch in a method for `ldiv!`. Loosening this type restriction should let even more array types work here. I've tested this and it doesn't look like it introduces any method ambiguities.
@codecov
Copy link

codecov bot commented Oct 26, 2020

Codecov Report

Merging #878 into master will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #878      +/-   ##
==========================================
- Coverage   82.07%   82.03%   -0.04%     
==========================================
  Files          43       43              
  Lines        2778     2778              
==========================================
- Hits         2280     2279       -1     
- Misses        498      499       +1     
Impacted Files Coverage Δ
src/multivariate/precon.jl 55.55% <100.00%> (ø)
...ultivariate/solvers/zeroth_order/particle_swarm.jl 98.70% <0.00%> (-0.44%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19c74be...d451203. Read the comment docs.

@pkofod
Copy link
Member

pkofod commented Apr 28, 2021

Thanks, though I fixed this while also not doing type piracy in a recent PR :)

@pkofod pkofod closed this Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants