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

Should an empty cat/hvcat etc. output an array of the expected dimensions? #40111

Open
BioTurboNick opened this issue Mar 19, 2021 · 1 comment
Labels
arrays [a, r, r, a, y, s]

Comments

@BioTurboNick
Copy link
Contributor

BioTurboNick commented Mar 19, 2021

Currently, empty cat expressions return empty vectors.

Should they instead return empty arrays of the expected dimensions?

Currently:

typeof(cat(dims = 3)) # Vector{Any}

typeof(cat(1, dims = 3)) # Array{Int, 3}
@BioTurboNick
Copy link
Contributor Author

BioTurboNick commented Aug 12, 2022

Just revisiting; technically this would breaking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s]
Projects
None yet
Development

No branches or pull requests

2 participants