CuArrays.jl
CuArrays.jl copied to clipboard
Upstream ldiv! overload
DiffEqBase.jl has been carrying an ldiv! overload to make it work for awhile (https://github.com/JuliaDiffEq/DiffEqBase.jl/blob/master/src/init.jl#L148-L152), and I think it might be a good time to upstream it.
Thanks! Want to add a test?
test added
bors r+
@ChrisRackauckas The CI failure looks related?
Would it make sense to make https://github.com/JuliaGPU/CuArrays.jl/blob/master/src/linalg.jl take use of this?
Emmm. Together with qr!
, this implementation seems to be slower than what we have in https://github.com/JuliaGPU/CuArrays.jl/blob/master/src/linalg.jl#L9-L13
But that implementation cannot reuse factorizations, so this is a lot faster in practice.
Good point!
I guess we should keep both then. I use \
in a case where no reuse could be taken.
It's also possible there's a better way to do this, but I haven't found it 🤷♂