Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing ldiv! overload for sparse Cholesky #319

Closed
stevengj opened this issue Dec 31, 2022 · 1 comment · Fixed by #547
Closed

missing ldiv! overload for sparse Cholesky #319

stevengj opened this issue Dec 31, 2022 · 1 comment · Fixed by #547

Comments

@stevengj
Copy link
Contributor

stevengj commented Dec 31, 2022

It seems like this should be supported:

julia> using SparseArrays, LinearAlgebra

julia> A = sprand(10,10,0.1); A = A'A + I;

julia> F = cholesky(A)
SuiteSparse.CHOLMOD.Factor{Float64}
type:    LLt
method:  simplicial
maxnnz:  11
nnz:     11
success: true

julia> b = rand(10); x = similar(b);

julia> ldiv!(x, F, b)
ERROR: MethodError: no method matching ldiv!(::SuiteSparse.CHOLMOD.Factor{Float64}, ::Vector{Float64})

Similar to #242, except in this case CHOLMOD does seem to provide an in-place API (whereas currently we are calling the out-of-place cholmod_l_spsolve):

image

cc @ChrisRackauckas, since this just came up in SciML/LinearSolve.jl#246

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant