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

Fix for derivative through sincospi gives StackOverflowError #499

Merged
merged 3 commits into from
Jan 18, 2021

Conversation

mchitre
Copy link
Contributor

@mchitre mchitre commented Jan 18, 2021

Fixes #497

Adds:

  • Specialized version of Base.sincospi(::Dual) to avoid stackoverflow error
  • Test case for the specialized Base.sincospi(::Dual)

NOTE: Julia 1.6 required

@codecov-io
Copy link

codecov-io commented Jan 18, 2021

Codecov Report

Merging #499 (ff96532) into master (56efb9f) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #499      +/-   ##
==========================================
+ Coverage   88.87%   88.91%   +0.03%     
==========================================
  Files          10       10              
  Lines         836      839       +3     
==========================================
+ Hits          743      746       +3     
  Misses         93       93              
Impacted Files Coverage Δ
src/dual.jl 79.03% <100.00%> (+0.21%) ⬆️

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 56efb9f...ff96532. Read the comment docs.

src/dual.jl Outdated Show resolved Hide resolved
@andreasnoack
Copy link
Member

Why is it that 1.6 is required?

@mchitre
Copy link
Contributor Author

mchitre commented Jan 18, 2021

Because sincospi() is introduced in 1.6.

src/dual.jl Outdated Show resolved Hide resolved
test/DualTest.jl Outdated Show resolved Hide resolved
Co-authored-by: Andreas Noack <andreas@noack.dk>
@andreasnoack andreasnoack merged commit 6afe377 into JuliaDiff:master Jan 18, 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.

Derivative through sincospi gives StackOverflowError
4 participants