Skip to content

Commit

Permalink
Merge pull request #39 from prbzrg/support-dot
Browse files Browse the repository at this point in the history
Support dot broadcast
  • Loading branch information
ChrisRackauckas committed Apr 11, 2024
2 parents dd87ccf + ba9a476 commit c9b2692
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ADTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ Chooses [FastDifferentiation.jl](https://github.com/brianguenter/FastDifferentia
"""
struct AutoSparseFastDifferentiation <: AbstractSparseSymbolicDifferentiationMode end

Base.broadcastable(ad::AbstractADType) = Ref(ad)

export AutoChainRules,
AutoDiffractor,
AutoFiniteDiff,
Expand Down
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,6 @@ struct CustomTag end
adtype = AutoSparseFastDifferentiation()
@test adtype isa ADTypes.AbstractADType
@test adtype isa AutoSparseFastDifferentiation

@test identity.(adtype) == adtype
end

0 comments on commit c9b2692

Please sign in to comment.