Commit Graph
3509 Commits
Author SHA1 Message Date
Mateusz Pusz aedcbcf2e7 docs: minor formatting and spelling improvements to the "CONTRIBUTING.md" 2024-09-08 11:46:34 +02:00
Mateusz Pusz ee21ae0e1f docs: "Generating API reference" chapter added 2024-09-08 11:45:19 +02:00
Mateusz Pusz efc7cb338b ci: generated api_reference destination directory fixed 2024-09-08 10:35:08 +02:00
Mateusz Pusz 1a7f461a08 ci: tex2html path export fixed 2024-09-08 09:36:26 +02:00
Mateusz Pusz be1fc86daf ci: api_reference/src path fixed 2024-09-08 09:27:04 +02:00
Mateusz Pusz 804814e9b0 feat: API reference generation added 2024-09-08 09:23:03 +02:00
Mateusz Pusz 32712a20a8 style: pre-commit formatting issues resolved 2024-09-08 08:32:17 +02:00
Mateusz Pusz 3d3990f3b5 Merge pull request #546 from JohelEGP/ref_docs
docs: add reference documentations
2024-09-08 15:21:54 +09:00
Mateusz Pusz c4a3103267 feat: update .gitignore to exclude generated api reference files 2024-09-08 08:20:26 +02:00
Mateusz Pusz 40d81d0f3e feat: mkdocs-exclude plugin added 2024-09-08 08:20:26 +02:00
Mateusz Pusz 4512e29b1b refactor: api.md renamed to the api_reference.md 2024-09-08 08:20:26 +02:00
Mateusz Pusz 09167990ad chore: *.tex files moved to api_reference/src directory 2024-09-08 08:20:26 +02:00
Johel Ernesto Guerrero Peña 20d58666fe docs: add reference documentations 2024-09-08 08:20:26 +02:00
Mateusz Pusz 04f128623e Merge pull request #532 from mpusz/api_reference
docs: "API Reference" support added
2024-09-08 15:18:20 +09:00
Mateusz Pusz b56bc8b5b2 docs: example generated files removed 2024-09-07 15:46:13 +02:00
Mateusz Pusz 1b4f451f90 docs: "API Reference" support added 2024-09-07 15:46:13 +02:00
Mateusz Pusz 40dc07a42c refactor: quantity_point default-constructibility removed from the quantity_from constraints 2024-09-06 18:31:51 +02:00
Mateusz Pusz c06a533f50 refactor: Representation concepts now requires WeaklyRegular instead of std::regular 2024-09-06 18:30:58 +02:00
Mateusz Pusz 3d39472f46 test: unit tests for creating a quantity from a volatile variable 2024-09-06 18:07:33 +02:00
Mateusz Pusz 664d52c0c0 refactor: perfect forwarding interfaces improved 2024-09-06 16:02:51 +02:00
Mateusz Pusz cbe37cdadf fix: compiler crashes workaround 2024-09-06 15:57:11 +02:00
Mateusz Pusz a9bcec46c8 fix: static removed from a constexpr variable in a constexpr function as this is supported in C++23 only 2024-09-06 15:56:45 +02:00
Mateusz Pusz 1570bda905 fix: quantity scaling between different prefixes improved
Resolves #608
2024-09-06 12:28:11 +02:00
Mateusz Pusz 7eb9b764bd fix: workarounds for not-working CWG2387 2024-09-05 22:05:35 +02:00
Mateusz Pusz 45013f6752 fix: inline restored for non-template constexpr global variables 2024-09-05 10:06:43 +02:00
Mateusz Pusz 2e840cfdb4 refactor: Repetitive inline constexpr removed as no longer needed
Not needed anymore as stated in cplusplus/draft#4601
2024-09-05 08:43:36 +02:00
Mateusz Pusz 2a4e1e3d95 docs: Rework of "Getting Started" section
Inspired by #603
2024-09-05 08:17:35 +02:00
Mateusz Pusz f0e19d004c fix: the remaining pascal macro conflicts fixed
Resolves #605
2024-08-25 17:31:58 +02:00
Mateusz Pusz 77625d63cb feat: 💥 unit_can_be_prefixed removed - from now on all named units can be prefixed
Resolves #604
2024-08-22 08:06:00 +02:00
Mateusz Pusz aab0ef8ea0 docs: a tip with unit_can_be_prefixed workaround added 2024-08-21 11:17:41 +02:00
Mateusz Pusz ab51b47328 Merge pull request #601 from chiphogg/chiphogg/sqrt-mag#474
Compute values for rational magnitude powers
2024-07-31 05:24:27 +09:00
Mateusz Pusz f983c31eb2 fix: workaround for linking issues on the older clang compilers 2024-07-30 16:07:45 +02:00
Chip Hogg f088d544b3 Fix known errors 2024-07-29 20:43:06 -04:00
Chip Hogg e2829de1c8 Merge branch 'master' into chiphogg/sqrt-mag#474 2024-07-29 20:36:40 -04:00
Mateusz Pusz 0850a200cd fix: import_std setting fixed for clang-tidy 2024-07-29 13:13:51 +02:00
Mateusz Pusz c7c446250d fix: import_std setting fixed 2024-07-29 12:21:36 +02:00
Mateusz Pusz 399c939c4f ci: import_std conan option is now dynamically deduces from other options 2024-07-29 12:01:05 +02:00
Mateusz Pusz 1788d9616f build: CMake's verify_header_sets disabled for import std; 2024-07-29 11:20:15 +02:00
Mateusz Pusz a8b79ff57f ci: import_std disabled for CMake CI 2024-07-29 10:28:39 +02:00
Mateusz Pusz 9448ef52b9 fix: std_format Conan option can be removed in configure 2024-07-29 10:25:09 +02:00
Mateusz Pusz d04d546b17 fix: target_compile_definitions scope fixed for import std; 2024-07-29 10:04:07 +02:00
Chip Hogg 3a6fac9858 Move tests to runtime 2024-07-24 20:04:15 -04:00
Chip Hogg f6696e8f68 Fix formatting 2024-07-24 19:48:05 -04:00
Mateusz Pusz f5eda4a25b fix: bump minimum conan version required
Resolves #600
2024-07-24 22:44:51 +02:00
Chip Hogg 7e894788d7 Compute values for rational magnitude powers
Since this will only ever be done at compile time (as guaranteed by
using `consteval`), we can afford to prioritize precision over speed.
To compute an Nth root, we simply do a binary search over representable
floating point numbers, looking for the number whose Nth power most
closely matches the original number.

Fixes #494.  We have included a test case reproducing the original
problem exactly.  All tests use "within 4 ULPs" as the criterion, which
is (I believe) equivalent to the googletest `EXPECT_DOUBLE_EQ`
criterion.
2024-07-24 10:31:44 -04:00
Mateusz Pusz f9ae701b4e fix: MP_UNITS_BUILD_IMPORT_STD verification fixed 2024-07-17 21:31:28 +02:00
Mateusz Pusz fb9043b649 fix: setting of MP_UNITS_BUILD_IMPORT_STD in generate() added 2024-07-16 20:51:59 +02:00
Mateusz Pusz 698accac4f docs: import std; row added to the "C++ compiler support" table 2024-07-16 20:50:42 +02:00
Mateusz Pusz 27bd2690bd fix: preventing import std; in GMF 2024-07-16 20:50:04 +02:00
Mateusz Pusz 2411a7ef12 build: minimum required CMake version bumped to 3.25
Resolves #597
2024-07-16 20:35:05 +02:00