Skip to content

Failure computing the SVD of symmetric complex matrices #1154

Closed
@apkille

Description

@apkille

MWE originally posted in Slack:

julia> M = Symmetric(rand(ComplexF64, 2, 2))
2×2 Symmetric{ComplexF64, Matrix{ComplexF64}}:
 0.477745+0.35744im   0.303887+0.416338im
 0.303887+0.416338im  0.463124+0.958195im

julia> svd(M)
ERROR: MethodError: no method matching svd!(::Symmetric{ComplexF64, Matrix{ComplexF64}}; full::Bool, alg::LinearAlgebra.DivideAndConquer)
The function `svd!` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  svd!(::Bidiagonal{var"#s4971", V} where {var"#s4971"<:Union{Float32, Float64}, V<:AbstractVector{var"#s4971"}}; full) got unsupported keyword argument "alg"
   @ LinearAlgebra ~/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/LinearAlgebra/src/bidiag.jl:254
  svd!(::StridedMatrix{T}, ::StridedMatrix{T}) where T<:Union{Float32, Float64, ComplexF64, ComplexF32} got unsupported keyword arguments "full", "alg"
   @ LinearAlgebra ~/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/LinearAlgebra/src/svd.jl:395
  svd!(::StridedVector{T}; full, alg) where T<:Union{Float32, Float64, ComplexF64, ComplexF32}
   @ LinearAlgebra ~/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/LinearAlgebra/src/svd.jl:109
  ...

Stacktrace:
 [1] svd(A::Symmetric{ComplexF64, Matrix{ComplexF64}}; full::Bool, alg::LinearAlgebra.DivideAndConquer)
   @ LinearAlgebra ~/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/LinearAlgebra/src/svd.jl:179
 [2] svd(A::Symmetric{ComplexF64, Matrix{ComplexF64}})
   @ LinearAlgebra ~/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/LinearAlgebra/src/svd.jl:178
 [3] top-level scope
   @ REPL[17]:1
  svd!(::StridedVector{T}; full, alg) where T<:Union{Float32, Float64, ComplexF64, ComplexF32}
   @ LinearAlgebra ~/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/LinearAlgebra/src/svd.jl:109
  ...

Stacktrace:
 [1] svd(A::Symmetric{ComplexF64, Matrix{ComplexF64}}; full::Bool, alg::LinearAlgebra.DivideAndConquer)
   @ LinearAlgebra ~/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/LinearAlgebra/src/svd.jl:179
 [2] svd(A::Symmetric{ComplexF64, Matrix{ComplexF64}})
   @ LinearAlgebra ~/.julia/juliaup/julia-1.11.1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/LinearAlgebra/src/svd.jl:178
 [3] top-level scope
   @ REPL[13]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions