Merge pull request #183 from stephentyrone/deprecations-for-1.0

Add deprecation warnings for old Augmented names in release/1.0
This commit is contained in:
Stephen Canon authored and GitHub committed 2021-08-19 19:38:17 -04:00
commit 5a0aedbccd
1 file changed
+10
@@ -93,4 +93,14 @@ extension Augmented {
let tail = a - head + b
return (head, tail)
}
@available(*, deprecated, renamed: "product")
public static func twoProdFMA<T:Real>(_ a: T, _ b: T) -> (head: T, tail: T) {
product(a, b)
}
@available(*, deprecated, renamed: "sum(large:small:)")
public static func fastTwoSum<T:Real>(_ a: T, _ b: T) -> (head: T, tail: T) {
sum(large: a, small: b)
}
}