-
Notifications
You must be signed in to change notification settings - Fork 36
Fixes return-types for multiple rules #55
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
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
2abc4cc
fixed issues with return-type for several rules
torfjelde 184ba54
initial work on inferring return type using intermediate computations
torfjelde c60fd7b
removed oftype where possible
torfjelde b440cdd
fixed stupid mistake
torfjelde 65c3559
missed one in fix of stupid mistake
torfjelde dcba293
more fixes
torfjelde 3f71077
added tests for different types
torfjelde ee42f7f
removed a couple of overdone oftypes
torfjelde 548dc2c
moved a single paranthesis
torfjelde ee6fe3e
use irrationals to simplify type-promotion
torfjelde b149ba5
depend on IrrationalConstants.jl
torfjelde 743b643
Merge branch 'master' into tor/return-type-fix
torfjelde 38b7fd4
fixed tests
torfjelde 6618cb1
actually fixed tests
torfjelde 09fbd51
Merge branch 'master' into tor/return-type-fix
torfjelde b89221a
updated rules to use constants from IrrationalConstants
torfjelde a48a523
Update src/rules.jl
torfjelde 1aaec9f
Apply suggestions from code review
torfjelde c8e6443
reverted some changes from previous commit
torfjelde 34892e0
fixed a typo
torfjelde 97445d4
fixed typo
torfjelde 2dee9c3
fixed type-conversion in tests
torfjelde 0f5b52c
Apply suggestions from code review
torfjelde a0b40e1
reverse previous commit due to https://github.com/mlubin/NaNMath.jl/i…
torfjelde 746a157
reverse previous commit due to https://github.com/mlubin/NaNMath.jl/i…
torfjelde 164ad73
drop qualifications from rules
torfjelde 75b0ff6
reverted unintended change to _abs_deriv
torfjelde 34ee3ca
interpolate _abs_deriv
torfjelde a58951c
be explicit about imported irrationals
torfjelde e64f9e0
fixed tests
torfjelde e383cfd
fixed numerical issues in tests by adopting some changes from #79
torfjelde 4903915
relax rtol slightly since we're working with Float32 too here
torfjelde 0111861
Update Project.toml
torfjelde 657c0d5
test type of derivative for functions with 2 arguments
torfjelde f236d23
fixed types of derivatives for mod, rem and different bessel functions
torfjelde 40e9133
use deg2rad
torfjelde e457830
reverted changes to + and -
torfjelde 56dba97
remove duplicate rules
torfjelde 80ded04
add back whitespace
torfjelde 7149dff
reverted changes to bessel functions
torfjelde 9823897
only test return-type having the correct promotion behavior
torfjelde 97117ef
only test type for 2 argument functions whose derivatives aren't NaN
torfjelde e29056a
fixed rules of mod and rem
torfjelde 773a572
make each rule its own testset for easier debugging
torfjelde cdbec02
reverted changes to multiple NaNMath rules
torfjelde 6ddff44
use more explicit promotion in tests
torfjelde 777d1a7
check promotion of real instead of specific check for Complex
torfjelde f937593
reverted unnecessary change
torfjelde 5d7b635
reverted unnecessary changes
torfjelde 6e564bc
dont check if AbstractFloat in tests
torfjelde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,22 +1,25 @@ | ||
| name = "DiffRules" | ||
| uuid = "b552c78f-8df3-52c6-915a-8e097449b14b" | ||
| version = "1.9.0" | ||
| version = "1.9.1" | ||
|
|
||
| [deps] | ||
| IrrationalConstants = "92d709cd-6900-40b7-9082-c6be49f344b6" | ||
| LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688" | ||
| NaNMath = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3" | ||
| Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
| SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" | ||
|
|
||
| [compat] | ||
| IrrationalConstants = "0.1.1" | ||
| LogExpFunctions = "0.3.2" | ||
| NaNMath = "0.3" | ||
| SpecialFunctions = "0.10, 1.0, 2" | ||
| julia = "1.3" | ||
|
|
||
| [extras] | ||
| FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000" | ||
| Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
| Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
|
||
| [targets] | ||
| test = ["Test", "Random"] | ||
| test = ["Test", "Random", "FiniteDifferences"] | ||
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.