fa04e93687
feat: New formatting specification implemented
2024-04-18 22:29:09 +01:00
069f2bf11a
feat: IEEE floating-point division remainder
2024-04-18 12:04:12 +01:00
8e0a26b933
feat: 💥 API-related Conan, CMake, and preprocessor options redesigned
2024-04-16 21:48:36 +01:00
7b57ce5ab1
build: 💥 MP_UNITS_BUILD_LA
and MP_UNITS_IWYU
CMake options now have _DEV_
in the name
2024-04-12 09:43:02 +02:00
fb97c2ea5a
refactor: basic_symbol_text
renamed to symbol_text
2024-03-18 23:12:39 +09:00
16f4f5d4a8
refactor: fixed_string
refactored to reflect the latest changes to P3094R1
2024-03-18 22:50:35 +09:00
5d041fda2d
test: unit_symbol()
and dimension_symbol()
runtime unit tests added
2024-02-27 10:23:09 +01:00
e50d75a104
feat: dimension text output added
...
Resolves #421
2024-02-26 09:30:08 +01:00
10ee4cc13c
feat: some light and radiation ISQ quantities added
2024-02-24 09:32:58 +01:00
f1639a038b
style: headers reordered to make pre-commit happy
2024-02-23 22:24:26 +01:00
5ca9168381
feat: proper exports implemented for C++ modules
2024-02-23 21:09:17 +01:00
cc05323b36
Merge pull request #551 from mpusz/typed_references
...
feat: improve types readability by eliminating extraneous () for a value of a type for references
2024-02-21 10:36:09 +01:00
1afb3d5c18
Merge branch 'master' of github.com:mpusz/units
2024-02-20 19:59:53 +01:00
cd61e077b7
test: a few quantity_spec
tests added
2024-02-20 19:59:46 +01:00
f81e9bdcfe
refactor: kind_of_
refactored to take a type to improve error messages
2024-02-20 19:49:22 +01:00
cb858f1e51
feat: ABI concerns resolved with introduction of u8 strings for symbols
2024-02-16 22:13:13 +01:00
2e609d9d6d
fix: add missing unit test changes
2024-02-13 21:14:00 +01:00
26a7b35e73
Merge pull request #550 from mpusz/typed_prefixes
...
feat: improve types readability by eliminating extraneous `()` for a value of a type for prefixes
2024-02-13 20:45:53 +01:00
34eac6a61e
Update test/runtime/atomic_test.cpp
...
Co-authored-by: Mateusz Pusz <mateusz.pusz@gmail.com >
2024-02-10 11:35:09 -08:00
947baa6d67
Update test/runtime/atomic_test.cpp
...
Co-authored-by: Mateusz Pusz <mateusz.pusz@gmail.com >
2024-02-10 09:35:04 -08:00
c313c2c083
Ensure mp-units are compatible with std::atomic
2024-02-10 08:43:44 -08:00
8b5d2ead52
fix: si_test compilation fixed
2024-02-05 19:45:08 +01:00
b4c08bb8fe
feat: improve types readability by eliminating extraneous () for a value of a type for references
...
Resolves #533
2024-02-05 19:41:53 +01:00
25a4c7c128
fix: quantity_test compilation fixed
2024-02-05 19:32:38 +01:00
96dcea751d
feat: improve types readability by eliminating extraneous ()
for a value of a type for prefixes
2024-02-05 19:12:47 +01:00
3382cb4b30
fix: compilation issues fixed
2024-01-26 16:04:59 +01:00
8fb800670c
refactor: 'o' replaced with '1' as a modifier for unit_symbol_solidus::one_denominator
2024-01-23 21:20:22 +01:00
64c351906d
feat: fmod
floating-point division remainder
2024-01-22 10:48:15 +00:00
057d659c1f
feat: atan2
2-argument arctangent
2024-01-20 19:37:00 +00:00
a62f061028
feat: ppm
parts per million
...
Co-authored-by: Mateusz Pusz <mateusz.pusz@gmail.com >
2024-01-20 14:37:36 +00:00
1df2cc7b58
feat: do not print space between a number and percent
or per_mille
2024-01-19 21:20:33 +01:00
d036af5647
fix: compilation errors after the last commit fixed
2024-01-19 11:09:29 +01:00
b4f07f6e7c
refactor: 💥 ReferenceOf
does not take a dimension anymore
...
It seems unneeded and removing this check greatly simplifies common compilation errors.
2024-01-19 10:35:32 +01:00
f2be389b57
feat: .view()
member funciton added to fixed_string
2024-01-18 16:47:16 +01:00
9511995d04
build: find_package()
calls don't spell CONFIG
explicitly anymore
2024-01-12 12:32:12 +01:00
fb8552b1d9
refactor: core-fmt
and core-ostream
modules merged with core
2024-01-06 08:51:01 +01:00
0eaf6e2e56
refactor: modules support redesigned
2024-01-06 08:51:01 +01:00
b582e200a0
fix: clang-17 with modules build on ignores disabling conversion warnings
2024-01-06 08:51:01 +01:00
7cb2099af5
feat: add module mp_units
2024-01-06 08:51:00 +01:00
6324f6dc2a
Merge pull request #522 from mpusz/implicit_point_origin
...
feat: implementation of implicit point origins
2023-12-26 11:09:43 +01:00
7f0e7f8ca8
refactor: 💥 SI-related trigonometric functions moved to the si
subnamespace
2023-12-26 09:31:11 +01:00
be1705bc4a
refactor: zeroth_point_origin()
renamed to default_point_origin()
and implicit_zeroth_point_origin
renamed to zeroth_point_origin
2023-12-22 17:29:02 +01:00
f2abaa28bc
feat: quantity_from_zero()
enabled for absolute point origins
2023-12-22 16:41:14 +01:00
a962182e13
feat: implicit point origins compatibility between different quantity specs added
2023-12-22 16:35:06 +01:00
641163a4c3
test: verify that the implicit point origin is properly set for the rest of the units and derived ones
2023-12-21 12:25:09 +01:00
fe099b5ad1
feat: propagation of point origins for scaled units added
2023-12-21 12:25:09 +01:00
10a2e6dc0d
feat: 💥 initial implementation of implicit point origins
2023-12-21 12:25:09 +01:00
267db9e2a2
Update minimum cmake version to 3.5
...
Currently, cmake is emitting the following warning:
```
CMake Deprecation Warning at cmake/ccache.cmake:23 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
```
Update the CMake min version to 3.5 to unclutter the build logs and ensure users don't get broken by the deprecation.
2023-12-16 11:51:58 -08:00
06e7c04214
test: fma() tests refactored
2023-12-16 20:24:52 +01:00
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