-
-
Notifications
You must be signed in to change notification settings - Fork 742
std.math.findRoot 1. can now accept delegate with different value and argument types 2. allow tolerance have default value #2266
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
Conversation
|
The ICE appears to have been fixed. I tried to merge into master, and it compiles and runs unittests fine. Could you please rebase to push the autotester to retest this PR? Thanks! |
@quickfur Thanks! I suppose PR rebased now. If it is not, please write me what I should do. |
clear comment
Seems to still trigger the ICE |
ICE 64 bit only |
Gah, apparently the ICE is triggered only with |
unittest | ||
{ | ||
static assert(__traits(compiles, findRoot((float x)=>cast(real)x, float.init, float.init))); | ||
static assert(__traits(compiles, findRoot!real((x)=>cast(double)x, real.init, real.init))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found the ICE: it's caused by this line. I'm going to run dustmite on it to find the minimal code that causes this.
Walter fixed the ICE. Hopefully the autotester will pass now... |
Looks like the previous failures are passing now. Should we merge? @Dicebot |
Please update the PR / commit to briefly explain intention of the change. "findRoot fix" says nothing to the reader - for me at least. |
@Dicebot, I have changed PR header. Is it what you suggest? |
Pretty much. Extra points if you can squash commits and amend the resulting commit message to something similar :) If you don't know how to do it:
It is not necessary but appreciated. Anyway: I don't know a thing about numeric stuff so need another LGTM from other reviewer before merging. |
@Dicebot thank you! Next PR i will make properly. I created this one with github web-editor. |
ping |
Auto-merge toggled on |
std.math.findRoot 1. can now accept delegate with different value and argument types 2. allow tolerance have default value
#1894 #1893 reopen