Skip to content

Commit

Permalink
restore parent adjoints
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Jul 3, 2022
1 parent bdefedc commit 26ae24b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,9 @@ end
# LinearAlgebra
# =============

@adjoint parent(x::LinearAlgebra.Adjoint) = parent(x), ȳ -> (LinearAlgebra.Adjoint(ȳ),)
@adjoint parent(x::LinearAlgebra.Transpose) = parent(x), ȳ -> (LinearAlgebra.Transpose(ȳ),)

function _kron(mat1::AbstractMatrix,mat2::AbstractMatrix)
m1, n1 = size(mat1)
mat1_rsh = reshape(mat1,(1,m1,1,n1))
Expand Down

0 comments on commit 26ae24b

Please sign in to comment.