mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 10:57:16 +02:00
feat: ComplexRepresentation
extended with complex operations
This commit is contained in:
@@ -118,12 +118,11 @@ concept ComplexRepresentation = Complex<T> && WeaklyRegular<T> && requires(T a,
|
||||
{ a - b } -> Complex;
|
||||
{ a* b } -> Complex;
|
||||
{ a / b } -> Complex;
|
||||
// TBD
|
||||
// { re(a) } -> Scalar;
|
||||
// { im(a) } -> Scalar;
|
||||
// { mod(a) } -> Scalar;
|
||||
// { arg(a) } -> Scalar;
|
||||
// { conj(a) } -> Complex;
|
||||
{ real(a) } -> Scalar;
|
||||
{ imag(a) } -> Scalar;
|
||||
{ abs(a) } -> Scalar;
|
||||
{ arg(a) } -> Scalar;
|
||||
{ conj(a) } -> Complex;
|
||||
};
|
||||
|
||||
// TODO how to check for a complex(Scalar, Scalar) -> Complex?
|
||||
|
Reference in New Issue
Block a user