Skip to content

Add support for Base.BroadcastFunction #19

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

Merged
merged 4 commits into from
Apr 29, 2023
Merged

Conversation

oschulz
Copy link
Collaborator

@oschulz oschulz commented Mar 28, 2023

Now we can do

julia> with_logabsdet_jacobian(.-, [1,2,3,4])
([-1, -2, -3, -4], 0)

See also JuliaMath/InverseFunctions.jl#31

@codecov
Copy link

codecov bot commented Mar 28, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (1c265b5) 100.00% compared to head (079346d) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #19   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         2    -1     
  Lines           61        60    -1     
=========================================
- Hits            61        60    -1     
Impacted Files Coverage Δ
src/with_ladj.jl 100.00% <100.00%> (ø)

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

@oschulz oschulz force-pushed the broadcast_function branch 2 times, most recently from fe0e303 to 07811b2 Compare March 28, 2023 08:33
@oschulz
Copy link
Collaborator Author

oschulz commented Mar 28, 2023

Fixed things on Julia v1.0.

@oschulz oschulz requested a review from devmotion March 28, 2023 08:39
@oschulz
Copy link
Collaborator Author

oschulz commented Apr 2, 2023

@devmotion ?

Tricky to implement a correct rrule here that handles
tangents which contain NoTangent or ZeroTangent.
@oschulz
Copy link
Collaborator Author

oschulz commented Apr 21, 2023

If you have no objections, I'd merge and release this, @devmotion .

@oschulz oschulz force-pushed the broadcast_function branch from 07811b2 to 079346d Compare April 29, 2023 12:51
@oschulz oschulz merged commit 079346d into master Apr 29, 2023
@oschulz oschulz deleted the broadcast_function branch April 29, 2023 12:56
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