Skip to content

BroadcastStyle of adjoints and transposes of static vectors seems incorrect #927

Open
@mateuszbaran

Description

@mateuszbaran

As in the title, see the following example:

julia> Broadcast.BroadcastStyle(typeof([1,2]'))
Base.Broadcast.DefaultArrayStyle{2}()

julia> Broadcast.BroadcastStyle(typeof((SA[1,2])'))
StaticArrays.StaticArrayStyle{1}()

AFAIK we should have

BroadcastStyle(::Type{<:Transpose{<:Any, <:StaticVector}})= StaticArrayStyle{2}()
BroadcastStyle(::Type{<:Adjoint{<:Any, <:StaticVector}}) = StaticArrayStyle{2}()

Metadata

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