1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:47:35 +00:00

AK: Add complex number library

Useful for diverse algorithms.
Also added some tests for it.
This commit is contained in:
Cesar Torres 2021-03-19 22:23:48 +01:00 committed by Andreas Kling
parent 0d5e1e9df1
commit f4f5a1c0e7
4 changed files with 412 additions and 0 deletions

View file

@ -38,12 +38,16 @@ concept Integral = IsIntegral<T>::value;
template<typename T>
concept FloatingPoint = IsFloatingPoint<T>::value;
template<typename T>
concept Arithmetic = IsArithmetic<T>::value;
#endif
}
#if defined(__cpp_concepts) && !defined(__COVERITY__)
using AK::IsArithmetic;
using AK::IsFloatingPoint;
using AK::IsIntegral;