JuliaLang / JuliaLang/LinearAlgebra.jl

`svd` and friends fail for `BigFloat` and other non-primitive numbers.

Open
#978 9 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bignums
Dominant language
Julia
Stars
77
Forks
65
Avg merge
3d 23h
Merged PRs (30d)
10

Description

svd, svdvals, svdvals!, rank (and any functions that use these internally) do not support BigFloat. Presumably they also fail to support other non-BlasReal types.

julia> svd(BigFloat.(rand(5,5)))
ERROR: MethodError: no method matching svdvals!(::Matrix{BigFloat})

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the BigFloat example for svd, svdvals, svdvals!, and rank, then trace their method dispatch and the handling of non-BlasReal types. Done means these entry points, including functions that use them internally, support BigFloat and the relevant non-primitive numeric types without the shown MethodError.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.