Cholesky Factorization of Transpose Matrix using LinearAlgebra raises Error

>versioninfo()
Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)

> A = [3 -1 0; -1 5 2; 0 2 7]
3×3 Array{Int64,2}:
  3  -1  0
 -1   5  2
  0   2  7

> cholesky(transpose(A))
ERROR: MethodError: no method matching cholesky(::Transpose{Int64,Array{Int64,2}})
Long Error message 

Hm. There is a similar problem with doing lu(B') if, using your A matrix: B = sparse(A).

This is a bug. (as is lu(::Adjoint)
Please open an issue on https://github.com/JuliaLang/julia/issues/

1 Like