Skip to content
This repository was archived by the owner on Apr 26, 2021. It is now read-only.
This repository was archived by the owner on Apr 26, 2021. It is now read-only.

svdvals(Matrix{BigFloat}) does not work #15

@JeffreySarnoff

Description

@JeffreySarnoff

(same error occurs using DoubleFloats instead of BigFloat)
(both work with using LinearAlgebra, GenericLinearAlgebra)

julia> using LinearAlgebra, GenericSVD

julia> m = reshape(rand(BigFloat,2*2), (2,2));

julia> m
2×2 Array{BigFloat,2}:
 4.20945e-01  9.67229e-01
 8.68658e-01  3.33326e-01

julia> svdvals(m)
ERROR: MethodError: no method matching rmul!(::Nothing, ::LinearAlgebra.Givens{BigFloat})
Closest candidates are:
  rmul!(::Nothing, ::Adjoint{Any,LinearAlgebra.Givens{T}}) where T at /home/jas/.julia/packages/GenericSVD/VJEWc/src/utils.jl:29
  rmul!(::AbstractArray{T,2} where T, ::LinearAlgebra.Givens) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/LinearAlgebra/src/givens.jl:351
Stacktrace:
 [1] svd_gk!(::Bidiagonal{BigFloat,Array{BigFloat,1}}, ::Nothing, ::Nothing, ::Int64, ::Int64, ::BigFloat) at /home/jas/.julia/packages/GenericSVD/VJEWc/src/GenericSVD.jl:302
 [2] svd!(::Bidiagonal{BigFloat,Array{BigFloat,1}}, ::Nothing, ::Nothing, ::BigFloat) at /home/jas/.julia/packages/GenericSVD/VJEWc/src/GenericSVD.jl:161
 [3] svd! at /home/jas/.julia/packages/GenericSVD/VJEWc/src/GenericSVD.jl:109 [inlined]
 [4] #generic_svdvals!#4(::Bool, ::Function, ::Array{BigFloat,2}) at /home/jas/.julia/packages/GenericSVD/VJEWc/src/GenericSVD.jl:56
 [5] generic_svdvals! at /home/jas/.julia/packages/GenericSVD/VJEWc/src/GenericSVD.jl:51 [inlined]
 [6] svdvals! at /home/jas/.julia/packages/GenericSVD/VJEWc/src/GenericSVD.jl:19 [inlined]
 [7] svdvals(::Array{BigFloat,2}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/LinearAlgebra/src/svd.jl:189
 [8] top-level scope at none:0

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