-
Notifications
You must be signed in to change notification settings - Fork 148
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 methods for SVector, Real #757
Comments
all other naive approaches a user will do fail completely |
Do we have a |
Oh my god, yes, you do... Sorry, it was some how impossible for me to imagine this, given that in my brain only |
No worries, it’s a bit confusing. @c42f should we support vcat and hcat for the purpose of array literals? If so we should reopen this. |
This is a duplicate of #602 though, so we can continue the discussion there. I think we should allow hcat and vcat because indeed it's the obvious thing to do. Surprising users with things which should work but happen not to is not great! The big problem is that we can't actually implement this in general: |
Yes, agreed. Sorry that I didn't search alot, but indeed as you say, |
Please add methods for
vcat(::SVector, ::Real)
. Here is one way to do it:and here is another:
don't know which is best, but I think something that useful (and simple!) should be supported/ exported by StaticArrays.jl
The text was updated successfully, but these errors were encountered: