@@ -1221,7 +1221,7 @@ extension SIMD where Scalar: FloatingPoint {
1221
1221
1222
1222
@_transparent
1223
1223
// SWIFT_ENABLE_TENSORFLOW
1224
- @differentiable ( vjp: _vjpAdd ( lhs: rhs: )
1224
+ @differentiable ( vjp: _vjpSubtract ( lhs: rhs: )
1225
1225
where Self : Differentiable,
1226
1226
Self . TangentVector : SIMD,
1227
1227
Scalar : Differentiable & BinaryFloatingPoint,
@@ -1269,7 +1269,7 @@ extension SIMD where Scalar: FloatingPoint {
1269
1269
1270
1270
@_transparent
1271
1271
// SWIFT_ENABLE_TENSORFLOW
1272
- @differentiable ( vjp: _vjpAdd ( lhs: rhs: )
1272
+ @differentiable ( vjp: _vjpSubtract ( lhs: rhs: )
1273
1273
where Self : Differentiable,
1274
1274
Self . TangentVector : SIMD,
1275
1275
Scalar : Differentiable & BinaryFloatingPoint,
@@ -1303,16 +1303,6 @@ extension SIMD where Scalar: FloatingPoint {
1303
1303
return lhs / Self( repeating: rhs)
1304
1304
}
1305
1305
1306
- // @_transparent
1307
- // public static func +=(lhs: inout Self, rhs: Self) {
1308
- // lhs = lhs + rhs
1309
- // }
1310
-
1311
- // @_transparent
1312
- // public static func -=(lhs: inout Self, rhs: Self) {
1313
- // lhs = lhs - rhs
1314
- // }
1315
-
1316
1306
@_transparent
1317
1307
public static func *= ( lhs: inout Self , rhs: Self ) {
1318
1308
lhs = lhs * rhs
@@ -1323,11 +1313,6 @@ extension SIMD where Scalar: FloatingPoint {
1323
1313
lhs = lhs / rhs
1324
1314
}
1325
1315
1326
- // @_transparent
1327
- // public static func *=(lhs: inout Self, rhs: Scalar) {
1328
- // lhs = lhs * rhs
1329
- // }
1330
-
1331
1316
@_transparent
1332
1317
public static func += ( lhs: inout Self , rhs: Scalar ) {
1333
1318
lhs = lhs + rhs
@@ -1337,6 +1322,11 @@ extension SIMD where Scalar: FloatingPoint {
1337
1322
public static func -= ( lhs: inout Self , rhs: Scalar ) {
1338
1323
lhs = lhs - rhs
1339
1324
}
1325
+
1326
+ @_transparent
1327
+ public static func *= ( lhs: inout Self , rhs: Scalar ) {
1328
+ lhs = lhs * rhs
1329
+ }
1340
1330
1341
1331
@_transparent
1342
1332
public static func /= ( lhs: inout Self , rhs: Scalar ) {
0 commit comments