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

Disambiguate (::ProjectTo) #85

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

platawiec
Copy link
Contributor

This resolves #84 by slightly restricting the type signature of (::ProjectTo{BlockDiagonal})(dx) to (::ProjectTo{BlockDiagonal})(dx::AbstractArray). This follows the pattern established in ChainRulesCore's ProjectTo definitions for linear algebra.

@codecov
Copy link

codecov bot commented Dec 28, 2021

Codecov Report

Merging #85 (15a145c) into master (e0ea72c) will decrease coverage by 0.19%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #85      +/-   ##
==========================================
- Coverage   96.09%   95.89%   -0.20%     
==========================================
  Files           5        5              
  Lines         333      317      -16     
==========================================
- Hits          320      304      -16     
  Misses         13       13              
Impacted Files Coverage Δ
src/chainrules.jl 100.00% <100.00%> (ø)
src/blockdiagonal.jl 85.93% <0.00%> (-0.63%) ⬇️
src/linalg.jl 95.18% <0.00%> (-0.23%) ⬇️
src/base_maths.jl 100.00% <0.00%> (ø)

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 e0ea72c...15a145c. Read the comment docs.

@willtebbutt
Copy link
Contributor

@platawiec thanks for this. Could you please bump the patch version? I'm happy to approve + release once that's done.

@willtebbutt willtebbutt merged commit 5f4dee9 into JuliaArrays:master Dec 30, 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.

Projecting a ZeroTangent onto a BlockDiagonal is Method-Ambiguous
2 participants