forked from mpusz/mp-units
feat: negation requirement added to Representation
concepts
This commit is contained in:
@@ -95,6 +95,7 @@ concept ScalarRepresentation = Scalar<T> && WeaklyRegular<T> && requires(T a, T
|
|||||||
{ a / f } -> Scalar;
|
{ a / f } -> Scalar;
|
||||||
|
|
||||||
// scalar operations
|
// scalar operations
|
||||||
|
{ -a } -> Scalar;
|
||||||
{ a + b } -> Scalar;
|
{ a + b } -> Scalar;
|
||||||
{ a - b } -> Scalar;
|
{ a - b } -> Scalar;
|
||||||
{ a* b } -> Scalar;
|
{ a* b } -> Scalar;
|
||||||
@@ -112,6 +113,7 @@ concept ComplexRepresentation = Complex<T> && WeaklyRegular<T> && requires(T a,
|
|||||||
{ a / T(f) } -> Complex;
|
{ a / T(f) } -> Complex;
|
||||||
|
|
||||||
// complex operations
|
// complex operations
|
||||||
|
{ -a } -> Complex;
|
||||||
{ a + b } -> Complex;
|
{ a + b } -> Complex;
|
||||||
{ a - b } -> Complex;
|
{ a - b } -> Complex;
|
||||||
{ a* b } -> Complex;
|
{ a* b } -> Complex;
|
||||||
@@ -134,6 +136,7 @@ concept VectorRepresentation = Vector<T> && WeaklyRegular<T> && requires(T a, T
|
|||||||
{ a / f } -> Vector;
|
{ a / f } -> Vector;
|
||||||
|
|
||||||
// vector operations
|
// vector operations
|
||||||
|
{ -a } -> Vector;
|
||||||
{ a + b } -> Vector;
|
{ a + b } -> Vector;
|
||||||
{ a - b } -> Vector;
|
{ a - b } -> Vector;
|
||||||
// TBD
|
// TBD
|
||||||
|
Reference in New Issue
Block a user