Skip to content

Incorrect eigen vectors on symmetric tensors #173

@fpguillet

Description

@fpguillet

On some 2D symmetric tensors with a diagonal term close but not equal to 0, eigen vectors are not computed correctly and are equal.
The error does not occur on the same, equal, general tensor, see below.

julia>a = SymmetricTensor{2, 2, Float64}([0.003 5.8002786937773495e-16 0.003])
2×2 SymmetricTensor{2, 2, Float64, 3}:
0.003 5.80028e-16
5.80028e-16 0.003

julia> eigvecs(a)
2×2 Tensor{2, 2, Float64, 4}:
0.0 0.0
1.0 1.0

julia> a = Tensor{2, 2, Float64}([0.003 +5.8002786937773495e-16 +5.8002786937773495e-16 0.003])
2×2 Tensor{2, 2, Float64, 4}:
0.003 5.80028e-16
5.80028e-16 0.003

julia> eigvecs(a)
2×2 Matrix{Float64}:
-0.707107 0.707107
0.707107 0.707107

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