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

svdl fails for complex matrices due to type assertion #331

Open
juandarias opened this issue Jan 22, 2023 · 0 comments
Open

svdl fails for complex matrices due to type assertion #331

juandarias opened this issue Jan 22, 2023 · 0 comments

Comments

@juandarias
Copy link

Setup

Julia 1.8.0
IterativeSolvers 0.9.2

Problem

Cannot factorize complex matrices with svdl.

MWE

using IterativeSolvers

M = rand(ComplexF64, 100, 200);    
svdl(M, nsv = 16, vecs = :both);

Error

ERROR: TypeError: in typeassert, expected LinearAlgebra.SVD{ComplexF64, Float64, Matrix{ComplexF64}, C} where C<:AbstractVector{Float64}, got a value of type LinearAlgebra.SVD{Float64, Float64, Matrix{Float64}, Vector{Float64}}
Stacktrace:
 [1] svdl_method!(log::ConvergenceHistory{false, Nothing}, A::Matrix{ComplexF64}, l::Int64; k::Int64, j::Int64, v0::Vector{ComplexF64}, maxiter::Int64, tol::Float64, reltol::Float64, verbose::Bool, method::Symbol, vecs::Symbol, dolock::Bool)
   @ IterativeSolvers ~/.julia/packages/IterativeSolvers/rhYBz/src/svdl.jl:192
 [2] svdl(A::Matrix{ComplexF64}; nsv::Int64, k::Int64, tol::Float64, maxiter::Int64, method::Symbol, log::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ IterativeSolvers ~/.julia/packages/IterativeSolvers/rhYBz/src/svdl.jl:168
 [3] svdl(A::Matrix{ComplexF64})
   @ IterativeSolvers ~/.julia/packages/IterativeSolvers/rhYBz/src/svdl.jl:157
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

1 participant