Skip to content

Commit 2492850

Browse files
author
Marc Rasi
committed
update differentiable programming manifesto
1 parent 9e9de1d commit 2492850

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/DifferentiableProgramming.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,12 @@ The synthesized `TangentVector` has the same effective access level as the
12711271
original type declaration. Properties in the synthesized `TangentVector` have
12721272
the same effective access level as their corresponding original properties.
12731273

1274+
The synthesized `TangentVector` adopts protocols from all `TangentVector`
1275+
conformance constraints implied by the declaration that triggers synthesis. For
1276+
example, synthesized `TangentVector`s always adopt the `AdditiveArithmetic` and
1277+
`Differentiable` protocols because the `Differentiable` protocol requires that
1278+
`TangentVector` conforms to `AdditiveArithmetic` and `Differentiable`.
1279+
12741280
The synthesized `move(along:)` method calls `move(along:)` for each pair of a
12751281
differentiable variable and its corresponding property in `TangentVector`.
12761282

0 commit comments

Comments
 (0)