Skip to content

hermitianpart(A) converts SMatrix to Matrix #1314

Description

@stevengj
julia> A = SA[1 2; 3 4]
2×2 SMatrix{2, 2, Int64, 4} with indices SOneTo(2)×SOneTo(2):
 1  2
 3  4

julia> hermitianpart(A)
2×2 Hermitian{Float64, Matrix{Float64}}:
 1.0  2.5
 2.5  4.0

The problem is that the LinearAlgebra implementation calls copy_similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions