Skip to content

Commit 6129613

Browse files
authored
added parent adjoint for LowerTriangular and UpperTriangular
1 parent 29fa32a commit 6129613

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/array.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@ end
355355

356356
@adjoint parent(x::LinearAlgebra.Adjoint) = parent(x), ȳ -> (LinearAlgebra.Adjoint(ȳ),)
357357
@adjoint parent(x::LinearAlgebra.Transpose) = parent(x), ȳ -> (LinearAlgebra.Transpose(ȳ),)
358+
@adjoint parent(x::LinearAlgebra.UpperTriangular) = parent(x), ȳ -> (LinearAlgebra.UpperTriangular(ȳ),)
359+
@adjoint parent(x::LinearAlgebra.LowerTriangular) = parent(x), ȳ -> (LinearAlgebra.LowerTriangular(ȳ),)
358360

359361
function _kron(mat1::AbstractMatrix,mat2::AbstractMatrix)
360362
m1, n1 = size(mat1)

0 commit comments

Comments
 (0)