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 of 0-dimensional array should return 0-dimensional array, not scalar #41643

Closed
stevengj opened this issue Jul 19, 2021 · 1 comment
Closed
Labels
domain:broadcast Applying a function over a collection

Comments

@stevengj
Copy link
Member

stevengj commented Jul 19, 2021

This seems inconsistent and undesirable:

julia> a = fill(1)
0-dimensional Array{Int64, 0}:
1

julia> Float64.(a)
1.0

julia> map(Float64, a)
0-dimensional Array{Float64, 0}:
1.0
@mbauman
Copy link
Sponsor Member

mbauman commented Jul 19, 2021

Duplicate of #28866

@mbauman mbauman marked this as a duplicate of #28866 Jul 19, 2021
@mbauman mbauman closed this as completed Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:broadcast Applying a function over a collection
Projects
None yet
Development

No branches or pull requests

2 participants