Gabriel Ozouf
52dcd8e749
[poincare/unit] Restructure Unit
...
1. Information about a unit's dimension now uses inheritance.
_m is an instance of DistanceAlias, which is derived from Alias.
A UnitNode now keeps a pointer to an Alias and one to a Prefix.
All aliases are still defined as constexpr.
This cleans up a lot of the code used namely for computing the
additional outputs in Calculation.
2. Instead of being defined with a string, each unit is described by its
ratio with the base SI unit (ex: _L is 0.001 instead of "0.001_m^3").
This greatly speeds up the calculations using units, as the algorithm
to find the best unit used to parse the definition.
Change-Id: I4d6ed6ad4cb967026a3f01a335aec270066e2b9f
2020-11-04 15:11:45 +01:00
..
2020-11-04 15:11:45 +01:00
2020-11-04 15:07:20 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:07:20 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:07:20 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:07:20 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-06-04 14:50:02 +02:00
2020-06-04 14:50:06 +02:00
2020-06-04 14:50:06 +02:00
2020-11-04 15:11:44 +01:00
2020-06-04 14:50:05 +02:00
2020-02-12 15:13:15 +01:00
2020-02-12 15:13:15 +01:00
2020-11-04 14:45:34 +01:00
2020-04-08 10:09:47 +02:00
2019-09-09 19:10:17 +02:00
2019-08-23 13:47:52 +02:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-04-06 13:35:18 +02:00
2020-02-21 16:03:07 +01:00
2020-11-04 15:11:44 +01:00
2020-02-21 16:03:07 +01:00
2020-02-12 15:13:26 +01:00
2020-04-09 11:36:51 +02:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-06-04 14:50:02 +02:00
2020-11-04 15:11:44 +01:00
2020-04-10 04:46:22 -07:00
2020-04-10 04:46:22 -07:00
2020-04-10 04:46:22 -07:00
2020-04-10 04:46:22 -07:00
2020-06-04 14:50:02 +02:00
2020-06-04 14:50:02 +02:00
2020-06-04 14:50:02 +02:00
2020-06-04 14:50:01 +02:00
2020-04-10 04:46:22 -07:00
2020-04-08 10:09:47 +02:00
2020-04-10 04:46:22 -07:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2019-09-09 20:05:14 +02:00
2020-06-04 14:50:06 +02:00
2020-06-04 14:50:06 +02:00
2020-06-04 14:50:06 +02:00
2020-06-04 14:50:06 +02:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-02-12 15:13:15 +01:00
2020-02-12 15:13:15 +01:00
2020-02-12 15:13:15 +01:00
2020-02-12 15:13:15 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-11-04 15:11:44 +01:00
2020-02-12 15:13:21 +01:00
2020-02-12 15:13:21 +01:00
2020-07-02 10:23:27 +02:00
2020-06-04 14:50:02 +02:00
2019-08-29 10:11:36 +02:00