Commit Graph
2668 Commits
Author SHA1 Message Date
Mateusz Pusz 76a9e0ff6e refactor(example): hello_units refactored to not use auto 2023-09-13 08:58:38 +02:00
Mateusz Pusz 9d64b75afe docs: basic examples refactored to not use auto 2023-09-13 08:58:17 +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 c4ad3039b3 refactor: asserts for zero simplified in quantity 2023-09-13 08:52:01 +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 42527d2bfb fix(example): measurement now properly propagates treat_as_floating_point 2023-09-10 14:17:34 +02:00
Mateusz Pusz d7261c8f76 fix(example): treat_as_floating_point specified for validated_type and ranged_representation 2023-09-04 12:30:14 +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 f0e1e202db fix: latitude and longitude are now quantity points and have proper formatting 2023-09-04 11:20:00 +02:00
Mateusz Pusz 81698f02e5 feat(example): validated_type now properly registers as a scalar type 2023-09-04 11:16:25 +02:00
Mateusz Pusz b3fb025053 feat(example): text output added to validated_type and ranged_representation 2023-09-04 11:15:33 +02:00
Mateusz Pusz b84c74b330 fix: fmt.h did not have header guards for ODR 2023-09-04 11:11:55 +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 75482733d1 docs: SI Brochure quote added with the rationale for the multiplication syntax usage to create quantities 2023-09-04 10:53:47 +02:00
Mateusz Pusz bbc2255a6e style: whitespace removed 2023-08-31 19:43:18 +02:00
Mateusz Pusz b236c23c8c docs: "Dimensionless Quantities" chapter moved up in the TOC 2023-08-31 19:02:42 +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 14d18a9d3a style: order of operators changed 2023-08-31 19:00:35 +02:00
Mateusz Pusz f1716c4bc7 docs: Compiler Explorer link updated for si_constants example 2023-08-31 18:59:10 +02:00
Mateusz Pusz bf1af91a51 docs: important admonition added for floating-points being value-preserving 2023-08-31 18:57:39 +02:00
Mateusz Pusz 0d8c398ff4 docs: quantity_point.h mentioned in the docs 2023-08-31 18:56:43 +02:00
Mateusz Pusz 617e60d60e docs: "Quantity Arithmetics" chapter added
Resolves #448
2023-08-31 18:56:15 +02:00
Mateusz Pusz 99bec8ecbb docs: math expressions usage improved in the "Glossary" chapter 2023-08-30 18:56:20 +02:00
Mateusz Pusz 596fd5d4ea docs: "numerical value" definition added to the "Glossary" chapter 2023-08-30 18:42:07 +02:00
Mateusz Pusz 5ee4c5346a test: test_tools.h file cleanup 2023-08-30 18:22:30 +02:00
Mateusz Pusz c6a8c672e9 docs: Compiler Explorer URL added to the si_constants example 2023-08-30 17:48:19 +02:00
Mateusz Pusz 2a5066aa9a docs: avg_speed and si_constants examples added to docs 2023-08-30 17:42:23 +02:00
Mateusz Pusz 0db297ac18 feat(example): the last remaining constant added to si_constants example 2023-08-30 17:39:22 +02:00
Mateusz Pusz 91a93b37db refactor(example): headers includes simplified in the avg_speed example 2023-08-30 17:38:36 +02:00
Mateusz Pusz fa38e4f497 docs: admonition types usage fine tuned 2023-08-30 11:33: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 f64c08bac3 fix: integral representations allowed for irrational canonical units
Resolves #485
2023-08-29 16:04:10 +02:00
Mateusz Pusz 750af32f06 style: whitespaces cleanup 2023-08-29 14:21:51 +02:00
Mateusz Pusz 7c41561c0d docs: "Basic Concepts" chapter revised 2023-08-29 14:17:14 +02:00
Mateusz Pusz bf35ddb51b docs: point origins definitions cleanup in glossary 2023-08-29 14:14:22 +02:00
Mateusz Pusz b4cf1e57de refactor: quantity point concepts cleanup 2023-08-29 14:09:41 +02:00
Mateusz Pusz bba880bdc7 docs: README updated 2023-08-28 21:04:33 +02:00
Mateusz Pusz bac2b91a0f docs: 'important' admonition type added 2023-08-27 21:52:47 +02:00
Mateusz Pusz 690fa592ca docs: outdated comment removed 2023-08-27 21:51:59 +02:00
Mateusz Pusz eac39512c1 docs: "Introduction" changed to "Tag Index" for examples 2023-08-27 21:40:11 +02:00
Mateusz Pusz 0322c4f9b4 docs: broken link fixed 2023-08-27 21:37:45 +02:00
Mateusz Pusz c6e9a9caf2 refactor: quantity::number_ member renamed to quantity::value_ 2023-08-26 21:05:15 +02:00
Mateusz Pusz ef1451daf5 docs: typo fixed 2023-08-26 20:50:17 +02:00
Mateusz Pusz 27a0fc773b style: formatting changed to make pre-commit happy 2023-08-26 20:47:34 +02:00
Mateusz Pusz c3077238c0 docs: CRTP full name fixed 2023-08-26 20:43:58 +02:00
Mateusz Pusz a9a043d892 style: whitespace removed to make pre-commit happy 2023-08-26 20:28:49 +02:00
Mateusz Pusz 6635ea95a4 ci: use gcc-11 for CodeQL analysis 2023-08-26 20:27:26 +02:00
Mateusz Pusz d42c89e459 ci: check if gcc-13 is available 2023-08-26 20:26:56 +02:00