Commit Graph
1175 Commits
Author SHA1 Message Date
Mateusz Pusz c5a0539cef refactor: all non-trigonometric math functions made constexpr 2023-06-02 10:53:34 +02:00
Mateusz Pusz 621faae8bc feat: sqrt() and cbrt() added for dimension, quantity_spec, and unit 2023-06-01 08:49:08 +02:00
Mateusz Pusz 14258c97fd refactor: magnitude::pow() now takes two ints rather than a ratio (consistent with the rest of library) 2023-06-01 08:47:55 +02:00
Mateusz Pusz 03b58ee073 refactor: square and cubic are now functions (not variable templates) 2023-06-01 08:45:41 +02:00
Mateusz Pusz 7771753163 refactor: make_quantity() forward declaration moved to the beginning of reference.h 2023-05-30 12:06:46 +02:00
Mateusz Pusz 45a4b2ac10 feat: make_quantity() usage added to quantity_spec 2023-05-30 12:06:01 +02:00
Mateusz Pusz 3713e08a95 refactor: library concepts cleanup 2023-05-30 12:04:07 +02:00
Mateusz Pusz b59af895dd fix: CGS definitions fixed 2023-05-27 17:25:43 +02:00
Mateusz Pusz 52bbd00ab4 style: clang-format new rules applied to the code base 2023-05-26 14:20:00 +02:00
Mateusz Pusz 561fbf7c93 merge branch master 2023-05-26 13:53:52 +02:00
Björn Schäpers 814b731696 Work around Windows macro 2023-05-25 13:08:51 +02:00
Mateusz Pusz 7d9ae3ec31 refactor: mp_units subdirectory renamed to mp-units 2023-05-25 12:47:10 +02:00
Mateusz Pusz a4171e2fb6 docs: some comments and TODOs added 2023-05-25 12:15:52 +02:00
Mateusz Pusz 32fcbd7829 fix: quantity_spec ingredients sorting fixed 2023-05-25 11:59:09 +02:00
Mateusz Pusz 002d5b4275 feat: inch_of_mercury support added 2023-05-25 10:34:34 +02:00
Mateusz Pusz 299032a7e8 refactor: conversion from quantity to quantity_point is now explicit 2023-05-24 22:42:11 +02:00
Mateusz Pusz a3e5c84a47 feat: support for convertibility of point origins added 2023-05-24 22:39:42 +02:00
Mateusz Pusz 0f7ae6954f refactor: definitions of derived quantities with equations resulting in electric_current fixed 2023-05-22 17:58:04 +02:00
Mateusz Pusz 5b2978b89a feat: UnitOf concept now supports dimensionless[radian] 2023-05-22 17:55:32 +02:00
Mateusz Pusz 6975a02570 refactor: InvocableQuantities concept simplified 2023-05-22 17:54:47 +02:00
Mateusz Pusz cd2cd620bb refactor: constraints for common_reference improved 2023-05-22 17:54:14 +02:00
Mateusz Pusz 26164edeac refactor: constraints for common_unit improved 2023-05-22 17:53:50 +02:00
Mateusz Pusz 86e1f058e7 feat: common_quantity_spec extended to properly work with kinds derived from the dimensionless 2023-05-22 17:52:59 +02:00
Mateusz Pusz 590539ad6c feat: The last corner cases in quantity_spec conversions addressed 2023-05-22 16:50:04 +02:00
Mateusz Pusz 2d2211fffa refactor: UnitOf used in quantity_spec::operator[] 2023-05-18 11:33:10 +02:00
Mateusz Pusz 41484742ae fix: missing header file added 2023-05-17 11:50:15 +02:00
Mateusz Pusz 34a824b232 feat: UnitOf concept added 2023-05-17 10:35:18 +02:00
Mateusz Pusz 7bad01fd45 refactor: Harmonic concept renamed to IntegralConversionFactor 2023-05-16 16:58:16 +02:00
Mateusz Pusz 9322aa25e4 Revert "feat: runtime conversion factors between units support added"
This reverts commit cc8a088013.
2023-05-16 16:41:51 +02:00
Mateusz Pusz 81eafbf13e refactor: convertible_result renamed to specs_convertible_result 2023-05-16 16:02:10 +02:00
Mateusz Pusz cc8a088013 feat: runtime conversion factors between units support added 2023-05-16 15:01:15 +02:00
Mateusz Pusz 978ce4093a feat: quantity_point converting constructor now takes into account convertibility of the quantity type 2023-05-16 14:08:36 +02:00
Mateusz Pusz 1dae61e1c8 feat: quantity converting constructor now takes into account a convertibility of a representation type 2023-05-16 14:07:29 +02:00
Mateusz Pusz 01755d66ce fix: forgot to commit a constructor for dimensionless quantities 2023-05-16 14:05:01 +02:00
Mateusz Pusz 56c8297c03 refactor: quantity_point binary operators are not hidden friends anymore to prevent surprising conversions 2023-05-16 14:04:01 +02:00
Mateusz Pusz a2b1fdd4c8 feat: unit conversion operator added to quantity_point 2023-05-16 13:44:13 +02:00
Mateusz Pusz 32aa05700b refactor: quantity binary operators are not hidden friends anymore to prevent surprising conversions 2023-05-16 13:43:51 +02:00
Mateusz Pusz 929dc72f13 fix: compilation-error fixed 2023-05-14 21:56:02 +02:00
Mateusz Pusz eaca8d073a refactor: convertible_to_result renamed to convertible_result 2023-05-14 12:58:32 +02:00
Mateusz Pusz 1e28c11cfc refactor: convertible_to(U1, U2) renamed to convertible(U1, U2) 2023-05-14 12:43:26 +02:00
Mateusz Pusz c33e3a584d feat: ReferenceOf concept added 2023-05-14 09:35:18 +02:00
Mateusz Pusz 27cd47b7af refactor: implicit conversion on construction allowed for quantity_point if quantity does the same 2023-05-11 11:10:52 +02:00
Mateusz Pusz 8ef6d409b2 refactor: character of dynamic_viscosity and magnetic_flux_density set explicitly 2023-05-02 22:00:19 +02:00
Mateusz Pusz 541a554852 feat: is_kind added to some dimensionless quantities definitions 2023-05-02 21:42:54 +02:00
Mateusz Pusz 82b18fc44c feat: is_kind support added to quantity_spec definition 2023-05-02 21:39:25 +02:00
Mateusz Pusz bc63ab23e1 refactor: [[nodiscard]] added to functions in type_traits.h 2023-05-02 21:35:28 +02:00
Mateusz Pusz 258a62edcc refactor: quantity hiearchy kinds fixed for some quantity definitions 2023-04-21 15:10:02 +01:00
Mateusz Pusz febc95d319 build: Library version set to 2.0.0 2023-04-21 15:02:21 +01:00
Mateusz Pusz aa15d4dfb4 build: ratio_maths.h removed from CMake build 2023-04-21 15:01:28 +01:00
Mateusz Pusz 5d6fee2585 refactor: quantity refactored + make_quantity() added 2023-04-21 15:00:37 +01:00