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

Canonical unit for dimension #3

Closed
sharkdp opened this issue Aug 29, 2022 · 2 comments
Closed

Canonical unit for dimension #3

sharkdp opened this issue Aug 29, 2022 · 2 comments

Comments

@sharkdp
Copy link
Owner

sharkdp commented Aug 29, 2022

With our new dimension concept, we can define a canonical unit for a certain dimension. For example: meter: Length, joule: Energy. Or if someone uses Imperial, ft: Length. Then, if the user doesn't ask for an explicit conversion, we can figure out the target dimension and use the canonical unit.

This will allow us to solve sharkdp/purescript-quantities#27

@sharkdp
Copy link
Owner Author

sharkdp commented Oct 7, 2022

See https://github.com/train-it-eu/conf-slides/blob/master/2022.09%20-%20CppCon/mp-units%20v2%20-%20new%20features%20discussion.pdf

=> there are N-to-1 relationships, e.g. torque ~ N · m ~ energy
or frequency (Hz) ~ activity (Bq) ~ 1/s

@sharkdp
Copy link
Owner Author

sharkdp commented Jul 17, 2023

closed in favor of #116

@sharkdp sharkdp closed this as completed Jul 17, 2023
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