Skip to content

Commit

Permalink
version the qr! for sparse matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 31, 2022
1 parent 4deb42a commit fd05fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factorization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ end

function do_factorization(alg::QRFactorization, A, b, u)
A = convert(AbstractMatrix, A)
if alg.inplace
if alg.inplace && (!(A isa SparseMatrixCSC) || VERSION >= v"1.8-")
fact = qr!(A, alg.pivot)
else
fact = qr(A) # CUDA.jl does not allow other args!
Expand Down

0 comments on commit fd05fb1

Please sign in to comment.