We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is this the desire behaviour when performing concatenation along dimension 1, i.e. when using vcat:
vcat
julia> vcat(SVector(1,2,3), 4) 4-element Array{Int64,1}: 1 2 3 4
returns a Vector instead of a SVector. To solve this I have to convert the scalar value to a static vector:
Vector
SVector
julia> vcat(SVector(1,2,3), SVector(4)) 4-element SArray{Tuple{4},Int64,1,4} with indices SOneTo(4): 1 2 3 4
Notice that, for Arrays there is no need to convert the scalar value to an Array:
Array
julia> vcat([1,2,3], 4) 4-element Array{Int64,1}: 1 2 3 4
i.e. there is no need to:
julia> vcat([1,2,3], [4]) 4-element Array{Int64,1}: 1 2 3 4
Thanks!
The text was updated successfully, but these errors were encountered:
This has already been fixed on master: #768 , although it won't be in 0.12.5.
Sorry, something went wrong.
Thank you!
No branches or pull requests
Is this the desire behaviour when performing concatenation along dimension 1, i.e. when using
vcat
:returns a
Vector
instead of aSVector
. To solve this I have to convert the scalar value to a static vector:Notice that, for
Array
s there is no need to convert the scalar value to anArray
:i.e. there is no need to:
Thanks!
The text was updated successfully, but these errors were encountered: