Sparse linear algebra question lu(::SparseMatrixCSC)

I got this strange error

using SparseArrays
M = sprand(3,16,0.5)
lu(M)
lu(M’)
ERROR: MethodError: no method matching lu!(::SparseMatrixCSC{Float64, Int64}, ::Val{true}; check=true)

Does anybody know why?

Looks like a missing method: missing lu(::SparseMatrixCSC, ::Val{true}; ...) method · Issue #41154 · JuliaLang/julia · GitHub

As a workaround, you can simply use lu(M)' instead of lu(M').

2 Likes

2 posts were split to a new topic: Computing sparse orthogonal projections