-
Notifications
You must be signed in to change notification settings - Fork 150
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
vcat(::SVector, ::Number) should return an SVector #602
Comments
I suspect that these methods don't exist because it was tricky to deal with the resulting ambiguities without support from |
To explain, a combinatoric explosion of ambiguities for varargs functions like |
Yes I understand. It might be easier to use LazyArrays.jl and use |
Well, if you just want a workaround there's plenty of options. Just wrapping the scalar in an |
Ah, I see, it's only missing on the scalar case: julia> vcat(SVector(1), SVector(2))
2-element SArray{Tuple{2},Int64,1,2}:
1
2 The benefit of the LazyArrays.jl approach is we can use |
Should be mitigated (to the extent which is easily possible) by #768 |
Interesting XRef which would have fixed this in Base: JuliaLang/julia#20815 |
I assume this behaviour is just an oversight:
Shall I make a PR overriding
vcat
(and possiblyhcat
)?The text was updated successfully, but these errors were encountered: