-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
164 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "SparseConnectivityTracer" | ||
uuid = "9f842d2f-2579-4b1d-911e-f412cf18a3f5" | ||
authors = ["Adrian Hill <[email protected]>"] | ||
version = "0.6.7" | ||
version = "0.6.8-DEV" | ||
|
||
[deps] | ||
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#= For now, three-argument functions are overloaded individually. | ||
If this file grows too large: | ||
1. 3-arg operators should be classified in src/operators.jl | ||
2. the classification should be tested in test/classification.jl | ||
3. code generation utilities should be added to the src/overloads/*_tracer.jl files | ||
=# | ||
Base.clamp(t::T, lo, hi) where {T<:AbstractTracer} = t | ||
Base.clamp(t::T, lo::T, hi) where {T<:AbstractTracer} = first_order_or(t, lo) | ||
Base.clamp(t::T, lo, hi::T) where {T<:AbstractTracer} = first_order_or(t, hi) | ||
function Base.clamp(t::T, lo::T, hi::T) where {T<:AbstractTracer} | ||
return first_order_or(t, first_order_or(lo, hi)) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters