Skip to content

Commit c0829bb

Browse files
committed
Get wrapper type from array
1 parent 52b76f0 commit c0829bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/diagonal.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,12 @@ function (*)(D::Diagonal, V::AbstractVector)
333333
end
334334

335335
function (*)(A::AdjOrTransAbsMat, D::Diagonal)
336-
copy((D' * A')')
336+
adj = wrapperop(A)
337+
copy(adj(adj(D) * adj(A)))
337338
end
338339
function (*)(D::Diagonal, A::AdjOrTransAbsMat)
339-
copy((A' * D')')
340+
adj = wrapperop(A)
341+
copy(adj(adj(A) * adj(D)))
340342
end
341343

342344
function rmul!(A::AbstractMatrix, D::Diagonal)

0 commit comments

Comments
 (0)