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

sparse linear algebra operations for non-BLAS numeric types (such as BigFloat etc.) #136

Closed
fgerick opened this issue May 11, 2021 · 4 comments

Comments

@fgerick
Copy link

fgerick commented May 11, 2021

The isposdef check for non-BLASnumber types seems to be broken due to a call to SuiteSparse:

julia> versioninfo()
Julia Version 1.6.1
Commit 6aaedecc44 (2021-04-23 05:59 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 16

julia> using LinearAlgebra, SparseArrays

julia> a = sprand(BigFloat,100,100,0.01); b = Symmetric(a*a');

julia> isposdef(b)
ERROR: TypeError: in Sparse, in Tv, expected Tv<:Union{Float64, ComplexF64}, got Type{BigFloat}
Stacktrace:
 [1] SuiteSparse.CHOLMOD.Sparse(A::SparseMatrixCSC{BigFloat, Int64}, stype::Int64)
   @ SuiteSparse.CHOLMOD /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/SuiteSparse/src/cholmod.jl:933
 [2] Sparse
   @ /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/SuiteSparse/src/cholmod.jl:949 [inlined]
 [3] cholesky(A::Hermitian{BigFloat, SparseMatrixCSC{BigFloat, Int64}}; kws::Base.Iterators.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:check,), Tuple{Bool}}})
   @ SuiteSparse.CHOLMOD /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/SuiteSparse/src/cholmod.jl:1458
 [4] isposdef(A::Symmetric{BigFloat, SparseMatrixCSC{BigFloat, Int64}})
   @ LinearAlgebra /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/LinearAlgebra/src/dense.jl:91
 [5] top-level scope
   @ REPL[15]:1
@fgerick fgerick changed the title SparseArrays.jl isposdef(A::Symmetric{BigFloat, SparseMatrixCSC{BigFloat, Int64}}) not working isposdef(A::Symmetric{BigFloat, SparseMatrixCSC{BigFloat, Int64}}) not working May 11, 2021
@dkarrasch
Copy link
Member

Was it ever working? I don't think we have generic sparse linear algebra methods, unfortunately.

@ViralBShah ViralBShah transferred this issue from JuliaLang/julia May 19, 2021
@ViralBShah
Copy link
Member

Yeah - I doubt if this ever worked.

@ViralBShah ViralBShah changed the title isposdef(A::Symmetric{BigFloat, SparseMatrixCSC{BigFloat, Int64}}) not working sparse linear algebra operations for non-BLAS numeric types (such as BigFloat etc.) Jul 2, 2021
@ViralBShah
Copy link
Member

It would be nice to have a generic sparse linear algebra implementation, and this topic does come up every now and then.

@ViralBShah
Copy link
Member

I am closing this - since it is not relevant to this package. This package simply provides wrappers for the SuiteSparse library.

@rayegun rayegun transferred this issue from JuliaSparse/SuiteSparse.jl Jun 7, 2022
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

No branches or pull requests

3 participants