Coder Social home page Coder Social logo

detail/voronoi_robust_fpt.hpp about polygon HOT 6 OPEN

boostorg avatar boostorg commented on July 17, 2024
detail/voronoi_robust_fpt.hpp

from polygon.

Comments (6)

asydorchuk avatar asydorchuk commented on July 17, 2024

Yes, I will look into it.

Да, я посмотрю.

from polygon.

LLlKuIIeP avatar LLlKuIIeP commented on July 17, 2024

Good afternoon.

Are there any successes?

from polygon.

eadf avatar eadf commented on July 17, 2024

Is there really an issue with divide by zero here?
To me it looks like the err value intentionally is set to infinity whenever additions or subtractions results in zero.
What took me a while to figure out was if the divide by zero could result in NaN (0/0).

That would be a problem, since NaN compared to any ulp value would be false, but it doesn't look like it can happen

from polygon.

LLlKuIIeP avatar LLlKuIIeP commented on July 17, 2024

Good day.

Let's connect colleagues to clarify division by zero.

from polygon.

meretin-as avatar meretin-as commented on July 17, 2024

Is there really an issue with divide by zero here?
To me it looks like the err value intentionally is set to infinity whenever additions or subtractions results in zero.
What took me a while to figure out was if the divide by zero could result in NaN (0/0).

That would be a problem, since NaN compared to any ulp value would be false, but it doesn't look like it can happen

Problem occur when you test your code with some kind of sanitizers, which check division by zero. So in current code realization sanitizer fails even in correct data because of division. If I understood you right, your suggestion is to use isnan or something like that, but it will not help to solve our problem.

from polygon.

eadf avatar eadf commented on July 17, 2024

Your sanitizer problem sounds like a documentation/comment problem, not a problem with the program code itself.
Maybe there's a zero cost abstraction operation that can be used?
i_know_what_im_doing_let_me_divide_by_zero(n,d) :)

My worries was if that division by zero could result in NaN, but it does not seem (from what i can tell) like that can ever happen. That's why I closed the PR

My local copy has an assert test for that nan condition, and it has not triggered yet.

from polygon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.