Commit Graph

34 Commits

Author SHA1 Message Date
Mateusz Pusz
f9ffacc713 feat: inverse() math utility added
Relates to #268
2023-09-20 20:13:39 +02:00
Mateusz Pusz
624b7c7404 fix: some fixes revealed during clang compilation 2023-08-24 19:14:23 +02:00
Mateusz Pusz
c8c7baef05 refactor: unused header file removed 2023-06-15 16:43:31 +03:00
Mateusz Pusz
ec04d9c03d test: math static tests updated for V2 2023-06-14 15:58:43 +03:00
Mateusz Pusz
2cf736a1e6 feat: preventing possible future units crash when using namespace std;
Resolves #317
2022-12-29 20:18:48 +01:00
Mateusz Pusz
1a29726d34 fix: math_test compile-time checks for floor, ceil, and round fixed
Relates to #311
2022-08-31 10:53:20 +02:00
Mateusz Pusz
144f6951c0 style: all files refromatted with clang-format 2022-03-17 23:59:48 +01:00
Markus Hofbauer
4cd90674d5 Feat: Round (#313)
* feat: round

* add more constraints for round

* overload round for quantity

* fix clang tidy

* Validate types before return
2021-11-15 18:53:15 +01:00
Markus Hofbauer
50b9050d6b Feat: Overloads for floor and ceil accepting quantities (#314)
* feat: overloads for floor and ceil accepting quantities

* require same type for dim and rep

* be specific for msvc
2021-11-15 12:23:28 +01:00
Markus Hofbauer
b881b56480 feat: first draft ceil 2021-11-13 16:50:55 +01:00
Markus Hofbauer
e82bfa23a5 Feat: Floor (#309)
* feat: first draft floor

* apply review feedback and move to desired files

* implement floor considering float types

* reduce code duplication

* apply review feedback and improve docstring

* enable static floor tests for gcc only

* Use recommended feature-test macro

* add floor runtime unittests

* apply review feedback

* make lambda const
2021-11-13 12:17:43 +01:00
Mateusz Pusz
37cfc53d1d refactor: IWYU applied to the source files
`alternative_namespaces` examples left out as I consider them a subject for removal in the nearest future.
2021-03-30 13:21:05 +02:00
Mateusz Pusz
bbbb77286c refactor: physical replaced with isq
Refers to #249
2021-03-16 12:03:25 +01:00
Mateusz Pusz
23720d055e refactor: Refactored the library file tree
Resolves #249
2021-03-16 09:32:28 +01:00
Mateusz Pusz
22eb0d08f1 fix: math_test compilation error fixed 2020-12-29 17:18:04 +01:00
dkavolis
23dd21465d rational powers 2020-12-29 17:04:38 +01:00
Mateusz Pusz
008dec79ea refactor: si.h usage limited 2020-12-28 14:34:27 +01:00
Mateusz Pusz
2a56438f1c refactor: file tree with systems defninitions refactored to limit ODR issues
Relates to #32 as with this commit we created something like modules for derived quantities
2020-09-11 18:11:25 +02:00
Mateusz Pusz
79558a6d72 refactor: systems defined in terms of SI moved under si namespace 2020-09-10 17:14:33 +02:00
Mateusz Pusz
58daacfd58 fix: unit tests fixed for DOWNCAST_MODE = OFF 2020-09-10 11:33:58 +02:00
Mateusz Pusz
e367afed71 Merge branch 'downcasting_2.0' 2020-09-09 20:31:03 +02:00
Mateusz Pusz
9527b39005 refactor: 💥 q_* UDL renamed to _q_*
We had some fun exploring the STD UDLs for potential collisions,
we have learnt our lesson and know how to proceed.
Now is high time to start behaving and obeying C++ rules.
2020-09-09 19:20:35 +02:00
Mateusz Pusz
5c98924efb Downcasting reworked to allow OFF and AUTO modes 2020-08-19 13:37:57 +02:00
Mateusz Pusz
9f94a73bba Custom is_same implementation added 2020-06-29 20:30:59 +02:00
Mateusz Pusz
ce301748dd Velocity renamed to Speed (resolves #103) 2020-05-10 17:31:47 +02:00
Mateusz Pusz
7e935a4108 Physical units put in the physical namespace (I am sorry) 2020-05-08 22:39:24 +02:00
Mateusz Pusz
18620044c5 All UDLs are now prefixed with q_ 2020-02-17 15:56:06 +01:00
Oliver Schönrock
0566cc631d implementing units::ratio_add and tests
not yet used in src/include/units/bits/dim_consolidate.h
because it breaks and cascades (due to new exponent we think)
2020-02-16 14:53:06 +01:00
Oliver Schönrock
291d3d1eb7 dealing with exponent during sqrt
fixes #58
2020-02-16 14:53:06 +01:00
Mateusz Pusz
2360392a3d Tests for #58 added (uncomment when fixed) 2020-02-11 08:51:34 +01:00
Mateusz Pusz
a01c811f5f Square and cubic UDLs renamed 2020-01-09 10:03:41 +01:00
Mateusz Pusz
33f14f39f3 math_test enabled 2019-12-06 12:56:44 +01:00
Mateusz Pusz
8543ab65d1 pow<0> support added 2019-10-19 20:51:20 +02:00
Mateusz Pusz
3475f5193e Catch2 support added (resolves #8) 2019-10-14 10:53:02 +02:00