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

Add nanmath option #941

Merged
merged 3 commits into from
Mar 12, 2024
Merged

Add nanmath option #941

merged 3 commits into from
Mar 12, 2024

Conversation

YingboMa
Copy link
Member

@YingboMa YingboMa commented Aug 1, 2023

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Aug 1, 2023

Codecov Report

Merging #941 (66a4f13) into master (d0b1724) will decrease coverage by 69.12%.
The diff coverage is 0.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master    #941       +/-   ##
==========================================
- Coverage   77.47%   8.35%   -69.12%     
==========================================
  Files          26      26               
  Lines        3329    3267       -62     
==========================================
- Hits         2579     273     -2306     
- Misses        750    2994     +2244     
Files Changed Coverage Δ
src/build_function.jl 0.00% <0.00%> (-72.27%) ⬇️

... and 24 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@YingboMa
Copy link
Member Author

YingboMa commented Aug 1, 2023

@shashi do you know what happened to Groebner Bases Test?

@@ -108,7 +108,11 @@ function _build_function(target::JuliaTarget, op, args...;
states = LazyState(),
linenumbers = true,
wrap_code = nothing,
cse = false, kwargs...)
cse = false,
nanmath = false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason to not default to true?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because defaulting to NaNMath would break our implicit support for complex numbers. See JuliaMath/NaNMath.jl#66

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just check if eltype(...) <: AbstractComplex ... in the replaced function? I think it would be pretty important to have this as the default.

@ChrisRackauckas ChrisRackauckas merged commit d501299 into master Mar 12, 2024
9 of 12 checks passed
@ChrisRackauckas ChrisRackauckas deleted the myb/nanmath branch March 12, 2024 15:14
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.

4 participants