File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
stdlib/public/Differentiation Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ extension ${Self}: Differentiable {
42
42
public typealias TangentVector = ${ Self}
43
43
44
44
${ Availability ( bits) }
45
+ @inlinable
45
46
public mutating func move( by offset: TangentVector ) {
46
47
self += offset
47
48
}
@@ -95,15 +96,15 @@ extension ${Self} {
95
96
/// Derivatives of standard unary operators.
96
97
${ Availability ( bits) }
97
98
extension ${ Self} {
98
- @usableFromInline
99
+ @inlinable
99
100
@_transparent
100
101
@derivative ( of: - )
101
102
static func _vjpNegate( x: ${ Self} )
102
103
-> ( value: ${ Self} , pullback: ( ${ Self} ) -> ${ Self} ) {
103
104
return ( - x, { v in - v } )
104
105
}
105
106
106
- @usableFromInline
107
+ @inlinable
107
108
@_transparent
108
109
@derivative ( of: - )
109
110
static func _jvpNegate( x: ${ Self} )
You can’t perform that action at this time.
0 commit comments