Comments (6)
Yes, I will look into it.
Да, я посмотрю.
from polygon.
Good afternoon.
Are there any successes?
from polygon.
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.
Good day.
Let's connect colleagues to clarify division by zero.
from polygon.
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.
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)
- boost::polygon::polygon_set_data::resize does not produce correct results when corner_fill_arc is true
- Crash with VS 16.8.6 but working with clang 11/13 and gcc 11 HOT 2
- sorry, wrong project. Please delete the issue. HOT 1
- sorry, wrong project. Please delete the issue.
- [voronoi] issue with pss() HOT 4
- WINDOWS COMPILATION: point_data.hpp(63): error C2672: 'assign': no matching overloaded function found
- boost::polygon::detail::resize() gives wrong result when expanding a shape HOT 1
- boost::polygon::detail::resize creates invalid polygons on expansion HOT 2
- Intersection of polygons with double coordinate type doesn't work HOT 1
- [voronoi] The diagram has an infinite segment that origin point inside in closed polygon. HOT 1
- Voronoi high-precision coordinate system
- An exception "cannot dereference end map/set iterator" in polygon_arbitrary_formation.hpp
- Aboated at boost::polygon::polygon_set_data<long long>::get() HOT 1
- atr_ missing from member initialization list
- Voronoi C++20 warnings
- boost::polygon::area returns 0 area HOT 2
- excessive includes in isotropy.hpp
- polygon::intersect(rectA, rectB, consider_touch) doesn't actually pass consider_touch to the intersection-check
- popCoordinate in funtion pushPoint is confusing
- The result of polygon_90_set_data::get with argument vthreshold is incorrect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polygon.