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

broadcast!! on StaticArrays seems wrong #231

Open
shashi opened this issue Jun 15, 2022 · 0 comments
Open

broadcast!! on StaticArrays seems wrong #231

shashi opened this issue Jun 15, 2022 · 0 comments

Comments

@shashi
Copy link

shashi commented Jun 15, 2022

Hi, I was looking for fill!! but settled for broadcast!!(identity, a, 0)

but:

julia> a = @SMatrix([1 0; 0 1])
2×2 SMatrix{2, 2, Int64, 4} with indices SOneTo(2)×SOneTo(2):
 1  0
 0  1

julia> broadcast!!(identity, a, 0)
0

...I expected it to return a SMatrix. Works fine if a is mutable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant