-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
How Approx handle INF #612
Comments
Mathematically, If you want to check that CHECK(x >= std::numeric_limits<float>::max()) It's probably safe to use |
Why exactly do you want to have Approx of infinity? |
That was long time ago for the course project when I decided to write test case for ray tracing. Using infinity for the the parallel cases. I will close this issue. |
Ok. I am not categorically opposed to making Approx infinity aware (although it would most likely start as "hey, don't do that" error on construction), but I wanted to know the motivation to do so. |
So, I have a question regarding to
Approx(INF)
, it seems thatREQUIRE(Approx(INF) == INF)
is false if I usefloat INF = std::numeric_limits<float>::infinity()
.here is what I got
And my test case file
So, is there any way I could use
Approx
along withINF
?The text was updated successfully, but these errors were encountered: