Skip to content

Commit

Permalink
Update src/rulesets/LinearAlgebra/structured.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
ChrisRackauckas and github-actions[bot] authored Nov 23, 2023
1 parent ee952df commit 5895736
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/rulesets/LinearAlgebra/structured.jl
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,7 @@ end
function rrule(::Type{Tridiagonal}, dl, d, du)
y = Tridiagonal(dl, d, du)
@views function ∇Tridiagonal(∂y)
return (
NoTangent(),
diag(∂y, -1),
diag(∂y),
diag(∂y, 1),
)
return (NoTangent(), diag(∂y, -1), diag(∂y), diag(∂y, 1))
end
return y, ∇Tridiagonal
end

0 comments on commit 5895736

Please sign in to comment.