Skip to content

Condition number is computed wrong in some cases #33547

Closed

Description

I have discovered this issue while working on another one:

julia> M = [1.0 -2.0; -2.0 -1.5]
2×2 Array{Float64,2}:
  1.0  -2.0
 -2.0  -1.5

julia> S = Symmetric(M)
2×2 Symmetric{Float64,Array{Float64,2}}:
  1.0  -2.0
 -2.0  -1.5

julia> cond(M, 1)
1.909090909090909

julia> cond(S, 1)
2.227272727272727

These two condition numbers should be the same, but they are clearly not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions