Skip to content

Adding (SymTri)Diagonal, Symmetric or Hermitian matrices together #439

Closed
JuliaLang/julia
#40126
@jebej

Description

@jebej

Currently adding e.g. two Symmetric matrices together results in a regular array. It would seem appropriate to add special methods:

- S + S = S
- S + D = S
- S + STD = S
- H + H = H
- H + D{Real} = H
- H + S{Real} = H
- H + STD{Real} = S

I hope I haven't made any mistakes with the above...

If that proposal is accepted, would the following style of definition be ok?

+(A::Symmetric,B::Symmetric) = Symmetric(A+B)

Metadata

Metadata

Assignees

No one assigned

    Labels

    minor changeMarginal behavior change acceptable for a minor release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions