Skip to content

Commit 7e312ef

Browse files
Add specialized ldiv! handling
This fixes #287 by just making sure to fallback to standard BLAS routines.
1 parent d87296a commit 7e312ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/linear_algebra.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@ function LinearAlgebra.axpby!(α::Number, x::ComponentArray, β::Number, y::Comp
5757
axpby!(α, getdata(x), β, getdata(y))
5858
return ComponentArray(y, getaxes(y))
5959
end
60+
61+
function LinearAlgebra.ldiv!(B::AbstractVecOrMat, D::Diagonal{Float64, <:ComponentArray}, A::AbstractVecOrMat)
62+
ldiv!(B, Diagonal(Vector(D.diag)), A)
63+
end

0 commit comments

Comments
 (0)