Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mateuszbaran opened this issue Jun 17, 2021 · 0 comments

Comments

@mateuszbaran
Copy link
Collaborator

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}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant