Missing methods qr(A)' and qr(A') for sparse

Weird, that Base.runtests("LinearAlgebra/qr") passed, but I got this error (which I thought this has been fixed in https://github.com/JuliaLang/SuiteSparse.jl/issues/22)

using LinearAlgebra, SparseArrays
A = sprand(10,100,0.1);

qr(A)'
ERROR: MethodError: no method matching adjoint(::SuiteSparse.SPQR.QRSparse{Float64,Int64})

qr(A')
ERROR: MethodError: no method matching qr!(::SparseMatrixCSC{Float64,Int64})
Julia Version 1.6.2
Commit 1b93d53fc4 (2021-07-14 15:36 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-8557U CPU @ 1.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
  JULIA_EDITOR = atom  -a
  JULIA_NUM_THREADS = 4

I don’t think we is defined for sparse since q will be dense.

1 Like