Mateusz Pusz
|
b2423bfded
|
feat: quantities can now be multiplied and divided by units
|
2023-09-29 21:40:24 -06:00 |
|
Mateusz Pusz
|
833851d1cb
|
test: tests for printing of a symbol of a dimensionless unit with the ratio = 1
|
2023-09-29 06:31:32 +02:00 |
|
Mateusz Pusz
|
caf0e66cb2
|
test: more unit tests for unit conversions
|
2023-09-28 09:01:52 +02:00 |
|
Mateusz Pusz
|
bbdf290009
|
fix: clang-17 compilation fixed
|
2023-09-26 19:15:57 +02:00 |
|
Mateusz Pusz
|
94bd2a23ca
|
build: got rid of old gcc hacks
|
2023-09-26 18:25:03 +02:00 |
|
Mateusz Pusz
|
7a6b629218
|
feat: gray and sievert now have correct associated quantity kinds
|
2023-09-26 15:27:43 +02:00 |
|
Mateusz Pusz
|
77cc08ef77
|
fix: min and max compilation issues resolved
|
2023-09-26 12:32:26 +02:00 |
|
Mateusz Pusz
|
bfbc1785b8
|
feat: isq::activity added and becquerel definition updated to benefit from it
|
2023-09-26 10:37:08 +02:00 |
|
Mateusz Pusz
|
f9ffacc713
|
feat: inverse() math utility added
Relates to #268
|
2023-09-20 20:13:39 +02:00 |
|
Mateusz Pusz
|
ff4755d5e5
|
feat: quantity_ref_from disallowed for rvalues
|
2023-09-13 20:11:59 +02:00 |
|
Mateusz Pusz
|
2e26eed59d
|
feat: numerical_value_ref_in disallowed for rvalues
|
2023-09-13 19:59:49 +02:00 |
|
Mateusz Pusz
|
6d619d67ef
|
refactor(example): get_magnitude improved for linear algebra
|
2023-09-13 19:53:32 +02:00 |
|
Mateusz Pusz
|
e085beef40
|
feat: qp.quantity_from(PO) added
|
2023-09-13 11:57:22 +02:00 |
|
Mateusz Pusz
|
75fc3a0384
|
style: more whitespace issues caused by rebase fixed
|
2023-09-13 11:56:06 +02:00 |
|
Mateusz Pusz
|
1c7928021d
|
feat: force_in(U) support added
|
2023-09-13 10:18:07 +02:00 |
|
Mateusz Pusz
|
2b2f62d038
|
feat: force_numerical_value_in(U) added
|
2023-09-13 10:10:10 +02:00 |
|
Mateusz Pusz
|
3b2ca4084a
|
refactor: quantity_point::quantity_from_origin() refactored to quantity_point::quantity_ref_from(PO)
Resolves #479 and relates to #477
|
2023-09-13 10:09:08 +02:00 |
|
Mateusz Pusz
|
a7711cb301
|
refactor: quantity::value() refactored to quantity::value_ref_in(U)
|
2023-09-13 09:23:59 +02:00 |
|
Mateusz Pusz
|
c30285ff96
|
fix: forgot to add compare_test.cpp to CMake
|
2023-09-13 09:14:45 +02:00 |
|
Mateusz Pusz
|
b7bab8c7e6
|
refactor: isq::speed_of_light renamed to isq::speed_of_light_in_vacuum
|
2023-09-13 09:14:20 +02:00 |
|
Mateusz Pusz
|
cbcc6f4627
|
feat: compare.h header added with checks against zero
Resolves #487
|
2023-09-13 08:55:06 +02:00 |
|
Mateusz Pusz
|
507d5bc446
|
fix(unit test): vector<T> now properly propagates treat_as_floating_point
|
2023-09-10 14:17:59 +02:00 |
|
Mateusz Pusz
|
b6bc9434d0
|
fix: quantity.in(U) fixed to clone a reference from the source type
|
2023-09-04 12:27:49 +02:00 |
|
Mateusz Pusz
|
f46b3dad74
|
feat: added an option to disable space before unit symbol in the text output
Resolves #387
|
2023-09-04 11:09:40 +02:00 |
|
Mateusz Pusz
|
2c9502a2a9
|
test: units tests for point origin arithmetics added
|
2023-08-31 19:02:04 +02:00 |
|
Mateusz Pusz
|
2bfc282483
|
test: missing units tests for quantity::one() aded
|
2023-08-31 19:01:13 +02:00 |
|
Mateusz Pusz
|
5ee4c5346a
|
test: test_tools.h file cleanup
|
2023-08-30 18:22:30 +02:00 |
|
Mateusz Pusz
|
f1c2c74ab0
|
refactor: quantity::value() renamed to quantity::numerical_value()
According to https://jcgm.bipm.org/vim/en/1.19.html "quantity value" also contains a unit. According to https://jcgm.bipm.org/vim/en/1.20.html "numerical value" is the correct term for just a number.
Resolves #423
|
2023-08-30 11:30:35 +02:00 |
|
Mateusz Pusz
|
24803a96cc
|
feat: math trigonometric functions can now be called with integral quantities
Relates to #485
|
2023-08-29 16:05:48 +02:00 |
|
Mateusz Pusz
|
4705382c17
|
test: a few checks trigger a bug in clang so they were disabled from compilation on this compiler
|
2023-08-26 19:43:09 +02:00 |
|
Mateusz Pusz
|
f29c57d367
|
style: formatting to make pre-commit happy
|
2023-08-25 23:05:36 +02:00 |
|
Mateusz Pusz
|
27ec678314
|
refactor: workarounds to make gcc-11 compile
|
2023-08-25 22:47:32 +02:00 |
|
Mateusz Pusz
|
f37aa8bbd0
|
test: unused origin definition removed from concepts_test.cpp
|
2023-08-25 20:28:24 +02:00 |
|
Mateusz Pusz
|
6f1832ceb3
|
feat: BaseQuantitySpec concept removed as it had no use
|
2023-08-25 20:27:38 +02:00 |
|
Mateusz Pusz
|
636f1e1f92
|
test: conditional compilation set for constexpr round() usage
|
2023-08-25 19:55:36 +02:00 |
|
Mateusz Pusz
|
af4615e466
|
test: quantity_point_test compilation enabled
|
2023-08-24 19:17:57 +02:00 |
|
Mateusz Pusz
|
8b661b9b0d
|
test: clang does not allow skipping template template parameters
|
2023-08-24 19:16:36 +02:00 |
|
Mateusz Pusz
|
9696e7466b
|
test: unused defintions removed from tests
|
2023-08-24 19:15:05 +02:00 |
|
Mateusz Pusz
|
624b7c7404
|
fix: some fixes revealed during clang compilation
|
2023-08-24 19:14:23 +02:00 |
|
Mateusz Pusz
|
3cc653fae1
|
build: fmt updated to 10.1.0 to enable gcc-13 compilation
|
2023-08-23 20:01:23 +02:00 |
|
Mateusz Pusz
|
a9204e2473
|
refactor: number() and number_in() renamed to value() and value_in()
Resolves #423
|
2023-08-23 17:15:32 +02:00 |
|
Mateusz Pusz
|
ae92b49775
|
refactor: op[U] for quantity and quantity_point replaced with .in(U)
Resolves #469
|
2023-08-23 16:46:15 +02:00 |
|
Mateusz Pusz
|
5af82e3162
|
refactor: point_from renamed to point_for
|
2023-08-23 15:42:55 +02:00 |
|
Mateusz Pusz
|
fb9f288c56
|
feat: quantity_point construction from quantity made private + make_quantity_point added
|
2023-08-23 12:49:14 +02:00 |
|
Mateusz Pusz
|
ed279c43ab
|
feat: quantity_point CTAD from Quantity removed
|
2023-08-23 11:53:49 +02:00 |
|
Mateusz Pusz
|
7594048850
|
fix: relative_point_origin::quantity_spec setting fixed
|
2023-08-23 11:42:43 +02:00 |
|
Mateusz Pusz
|
71981172c3
|
feat: quantity_point does not take a default origin anymore + common_qs logic removed from the binary operators
|
2023-08-23 10:41:37 +02:00 |
|
Mateusz Pusz
|
07ce64d6e7
|
refactor: relative() renamed to quantity_from_origin()
Resolves #479
|
2023-08-18 18:49:04 +02:00 |
|
Mateusz Pusz
|
752408449f
|
feat: PointOrigin arithmetics support added
|
2023-08-18 18:35:41 +02:00 |
|
Mateusz Pusz
|
110986ee1f
|
feat: quantity_cast<kind_of_qs>(associated_unit) now returns the bare unit as a reference
|
2023-08-18 11:11:29 +02:00 |
|