wg21 icon indicating copy to clipboard operation
wg21 copied to clipboard

Add division by a scalar

Open mpusz opened this issue 4 years ago • 1 comments

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.

mpusz avatar Mar 25 '20 15:03 mpusz

This is on the schedule to be added to R7.

BobSteagall avatar Mar 25 '20 16:03 BobSteagall

Done for r7z

BobSteagall avatar Jan 01 '23 18:01 BobSteagall