Closed ChrisRackauckas closed 5 years ago
Dup of https://github.com/JuliaLang/LinearAlgebra.jl/issues/615
I think the simplest way to solve this is to add a fallback ldiv!(Y::AbstractArray, A::AbstractArray, B::AbstractArray) = (copy!(Y,B); ldiv!(A,Y))
.
The proposed fix is not the right one, e.g., for non-commutative types. It should be D.diag .\ b
, as in line 512 of diagonal.jl
. To have a decent fallback would be good, but in the diagonal case, one can solve it in one loop, whereas the fallback has two.
Closing as dup of JuliaLang/LinearAlgebra.jl#615
Seems silly, but since
factorize(::Diagonal)
returns a::Diagonal
, in order for generic non-allocating codes withfactorize
to work well withDiagonal
the missing method needs to be added:of course the fix is: