Skip to content

Commit 5509fe7

Browse files
authored
Fix skew-symmetric comment
1 parent 6efb2d2 commit 5509fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/opting_out_of_rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ end
2727
That is a fairly reasonable `rrule` for the vast majority of cases.
2828

2929
You might have a custom array type for which you could write a faster rule.
30-
For example, the pullback for summing a [`SkewSymmetric` (anti-symmetric)](https://en.wikipedia.org/wiki/Skew-symmetric_matrix) matrix can be optimized to basically be `Diagonal(fill(ȳ, size(x,1)))`.
30+
For example, the pullback for summing a [`SkewSymmetric` (anti-symmetric)](https://en.wikipedia.org/wiki/Skew-symmetric_matrix) matrix can be optimized all the way to `ZeroTangent()` as all off-diagonals cancel and the diagaonal is structurally zeros.
3131
To do that, you can indeed write another more specific [`rrule`](@ref).
3232
But another case is where the AD system itself would generate a more optimized case.
3333

0 commit comments

Comments
 (0)