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

feat: introduce ordered float #699

Merged
merged 2 commits into from
Oct 1, 2022
Merged

feat: introduce ordered float #699

merged 2 commits into from
Oct 1, 2022

Conversation

wangrunji0408
Copy link
Member

@wangrunji0408 wangrunji0408 commented Oct 1, 2022

Signed-off-by: Runji Wang wangrunji0408@163.com

This PR introduces ordered float to replace the native f32 & f64, which allows us to derive Eq, Ord and Hash for various types. resolve #670.

BTW, I'm attempting to integrate egg as our optimization framework. The ordered float seems to be a blocker to it.

Signed-off-by: Runji Wang <wangrunji0408@163.com>
@wangrunji0408 wangrunji0408 requested review from skyzh and xxchan October 1, 2022 08:30
Signed-off-by: Runji Wang <wangrunji0408@163.com>
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

Successfully merging this pull request may close these issues.

expr: use ordered_float for all occurrences of f64
2 participants