Merge pull request #59 from t-ae/complex-signed-numeric

Make Complex SignedNumeric
This commit is contained in:
Stephen Canon authored and GitHub committed 2019-11-08 21:24:12 -05:00
commit 41bca53809
1 file changed
+2 -5
+2 -5
View File
@@ -30,11 +30,6 @@ extension Complex: AdditiveArithmetic {
public static func -=(z: inout Complex, w: Complex) {
z = z - w
}
@_transparent
public static prefix func -(z: Complex) -> Complex {
return Complex(-z.x, -z.y)
}
}
// MARK: - Vector space structure
@@ -167,3 +162,5 @@ extension Complex: Numeric {
return nil
}
}
extension Complex: SignedNumeric {}