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

Add division by a scalar #38

Closed
mpusz opened this issue Mar 25, 2020 · 2 comments
Closed

Add division by a scalar #38

mpusz opened this issue Mar 25, 2020 · 2 comments

Comments

@mpusz
Copy link

mpusz commented Mar 25, 2020

Right now the library seems to not support the division by a scalar. For example:

fs_vector<si::length<si::metre>, 3> v = { 4q_m, 8q_m, 12q_m };
std::cout << v / 2q_s << "\n";

The expected output would be to print quantities of velocity types.

Multiplication by the inverse value of a scalar really does not work for all cases.

@BobSteagall
Copy link
Owner

This is on the schedule to be added to R7.

@BobSteagall
Copy link
Owner

Done for r7z

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

2 participants