Commit Graph
1428 Commits
Author SHA1 Message Date
Mateusz Pusz cccf1e24b0 refactor: point origin can't be set for a unit that does not have an associated quantity kind 2023-12-21 12:25:09 +01:00
Mateusz Pusz fe099b5ad1 feat: propagation of point origins for scaled units added 2023-12-21 12:25:09 +01:00
Mateusz Pusz 5f840d7079 fix: point origins comparison fixed 2023-12-21 12:25:09 +01:00
Mateusz Pusz 10a2e6dc0d feat: 💥 initial implementation of implicit point origins 2023-12-21 12:25:09 +01:00
Mateusz Pusz 7c83f586db refactor: value_casts cleanup 2023-12-20 09:24:35 +01:00
Mateusz Pusz 436463b7a7 feat: value_cast<Unit, Representation> added 2023-12-19 18:19:22 +01:00
Mateusz Pusz 0db047803e refactor: 💥 zeroth_Fahrenheit renamed to zeroth_degree_Fahrenheit 2023-12-19 08:16:58 +01:00
Mateusz Pusz ce6db6950f feat: quantity_point support added for quantity_cast and value_cast 2023-12-18 16:40:05 +01:00
Mateusz Pusz bd9e4f944c fix: QuantityLike conversions required Q::rep instead of using one provided by quantity_like_traits 2023-12-18 15:40:25 +01:00
Mateusz Pusz 8fcc7e3a49 refactor: zero_Fahrenheit renamed to zeroth_Fahrenheit 2023-12-17 18:32:01 +01:00
Mateusz Pusz 05fd4a3ef7 refactor: math functions constraints refactored 2023-12-16 20:24:21 +01:00
Nick Thompson 7a270a6fd9 Floating point classification functions
Add the ability for `isnan`, `isfinite`, and `isinf` to work on dimensioned quantities.
2023-12-16 08:08:44 -08:00
Nick dd84873ac9 Merge branch 'master' into add_fma 2023-12-15 13:01:38 -08:00
Nick f32aafe0df Merge branch 'mpusz:master' into add_fma 2023-12-11 18:01:52 -08:00
Nick Thompson 51f8b47071 Add fma to math.h 2023-12-09 13:26:38 -08:00
Mateusz Pusz 217048857a build: project version updated to 2.2.0 2023-12-09 19:03:45 +01:00
Mateusz Pusz 13b450e8cf fix: quantity_point::point_for(PO) constraints fixed 2023-12-03 19:24:29 +01:00
Mateusz Pusz 40c2ecb2aa feat: equivalent point origins handling improved 2023-12-03 18:57:34 +01:00
Mateusz Pusz da8721b997 feat: users are now allowed to inherit their ow types from absolute point origins 2023-12-03 16:15:38 +01:00
Mateusz Pusz 611e380ed4 fix: missing constexpr added to a quantity_point constructor 2023-12-02 14:17:20 +01:00
Mateusz Pusz b6b5832c56 refactor: unit_symbol changed to consteval 2023-11-30 10:56:09 +01:00
Mateusz Pusz 0e29354bc0 docs: TODO note added to unit_symbol() 2023-11-30 10:55:41 +01:00
Mateusz Pusz 2c8783bda1 refactor: unit_symbol_formatting enums now use std::int8_t as a representation type 2023-11-30 10:54:49 +01:00
Mateusz Pusz 29c83c0d84 feat: 💥 symbol_text definition simplified 2023-11-30 09:25:29 +01:00
Mateusz Pusz 97d5bb569b refactor: more type members added to fixed_string definition 2023-11-30 09:23:13 +01:00
Mateusz Pusz 683c49bef3 style: clang-format updated to 17.0.5 in pre-commit 2023-11-28 14:19:04 +01:00
Mateusz Pusz fa596fffc6 refactor: 💥 make_xxx factory functions replaced with two-parameter constructors
Resolves #521
2023-11-28 11:52:37 +01:00
Mateusz Pusz 80129b32d7 Merge branch 'master' of github.com:mpusz/units 2023-11-08 15:37:16 -10:00
Mateusz Pusz ae69e2e2b6 fix: are_ingredients_convertible now mandates explicit conversion for To dimensionless quantities 2023-11-06 16:52:10 -10:00
Mateusz Pusz 162514c19e docs: "canonical unit" added to glossary and its documentation in code was updated 2023-11-04 21:36:03 +01:00
Mateusz Pusz d195e2b3bf fix: equality for dimensions fixed to provide transitivity 2023-11-03 21:18:57 +01:00
Mateusz Pusz 1f14184ac3 style: clang-format updated to clang 17 2023-10-25 14:38:26 +02:00
Mateusz Pusz 4abef7b245 refactor: duplicated forward declaration of quantity removed 2023-10-21 08:17:55 +02:00
Mateusz Pusz df2616927d refactor: quantity operators refactored 2023-10-20 21:21:07 +02:00
Mateusz Pusz 15922b5bd8 fix: CommonlyInvocableQuantities was overconstrained for the current library design 2023-10-20 09:39:24 +02:00
Mateusz Pusz eaa2ddbf01 refactor: quantity operators constraints refactored 2023-10-20 08:42:22 +02:00
Mateusz Pusz 32ea1bd9b4 feat: common_type with a raw value is not needed anymore as for a long time now raw values are not convertible to the dimensionless quantities 2023-10-18 21:03:21 +02:00
Mateusz Pusz d5549ff92d feat: zero_Fahrenheit point origin added 2023-10-18 17:17:09 +02:00
Mateusz Pusz d3ad78a9dd fix: Fahrenheit conversion ratio was inverted 2023-10-18 16:34:39 +02:00
Mateusz Pusz 8e48906729 refactor: quantity_from_origin_ data member now has much less friendly name 2023-10-17 14:29:59 +02:00
Mateusz Pusz abafd1d38e refactor: numerical_value_ data member now has much less friendly name 2023-10-17 14:16:22 +02:00
Mateusz Pusz 6e7a2fd0bb refactor: order of overload for Unit changed 2023-10-17 12:11:32 +02:00
Mateusz Pusz 98d07b9ed1 feat: 💥 quantity_spec and its kind should not compare equal 2023-10-17 09:45:31 +02:00
Mateusz Pusz ff3d1e87fa refactor: 💥 unit_symbol<fmt>(U) signature refactored and the resulting text can now also be used at runtime
Resolves (#501)
2023-10-17 09:09:18 +02:00
Mateusz Pusz 909d9a7089 feat: basic_fixed_string(const CharT*, std::integral_constant<std::size_t, N>) constructor added 2023-10-17 08:59:25 +02:00
Mateusz Pusz daadccebe0 refactor: additional constraints added to the fixed_string(CharT) constructor 2023-10-17 08:25:13 +02:00
Mateusz Pusz 18b4d3be33 fix: missing header include added to type_list.h 2023-10-17 08:20:28 +02:00
Mateusz Pusz 9d708c5e39 feat: 💥 mutating interface removed from fixed_string 2023-10-17 08:19:26 +02:00
Mateusz Pusz f4dfdc072e fix: printing of half_high_dot now properly updates the iterator 2023-10-17 08:15:10 +02:00
Mateusz Pusz 556df31590 feat: equality for dimensions now will allow derived classes as well (but not from derived_dimension) 2023-10-15 17:08:19 +02:00