Skip to content

Certain SArray * Adjoint(SArray) produces Array{Float64,2} instead of SArray #537

Closed
@zygmuntszpak

Description

@zygmuntszpak

A product of two StaticArrays results in an allocated array.
Here is a minimal working example:

A = @SMatrix rand(9,1)
B = SArray{Tuple{9},Float64,1,9}(1,2,3,4,5,6,7,8,9)
C = adjoint(B)
D = A*C
typeof(D) # Array{Float64,2} instead of a StaticArray. 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions