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

Generalization for type T being dense #1

Open
nji9nji9 opened this issue Jan 8, 2024 · 0 comments
Open

Generalization for type T being dense #1

nji9nji9 opened this issue Jan 8, 2024 · 0 comments

Comments

@nji9nji9
Copy link

nji9nji9 commented Jan 8, 2024

Very useful indeed!

Still I wonder if that could be generalized to better match the mathematical needs:
Interval borders being closed or open.
Actually one has to decide whether borders are all closed or all open (MERGE_TOUCHING)
As kind of syntactical mean for not-dense (integral) types T.

If for every element of type T you can tell the nearest smaller/ larger element
(i.e. T is not dense), you can take that for defining an open interval border.
(E.g. for C floating points: std::nextafter())
But if T doesn't provide an implementation of nextafter()...

Do you think you might generalize in that way?
(The MERGE_TOUCHING thing will be obsolet then).

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

No branches or pull requests

1 participant