You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered a problem where adding two SizedArrays creates an SArray, when I'd have thought the outcome would be a SizedArray:
julia> a = SizedVector{1}([1])
1-element SizedArray{Tuple{1},Int64,1,1} with indices SOneTo(1):
1
julia> b = SizedVector{1}([1])
1-element SizedArray{Tuple{1},Int64,1,1} with indices SOneTo(1):
1
julia> a + b
1-element SArray{Tuple{1},Int64,1,1} with indices SOneTo(1):
2
julia> a .+ b
1-element SArray{Tuple{1},Int64,1,1} with indices SOneTo(1):
3
Is this intended?
Cheers,
James
Version info:
Version 1.3.2-pre.0 (2019-12-31)
release-1.3/2e6715c045 (fork: 118 commits, 217 days)
(v1.3) pkg> st StaticArrays
Status `~/.julia/environments/v1.3/Project.toml`
[90137ffa] StaticArrays v0.12.0 [`~/.julia/dev/StaticArrays`]
[37e2e46d] LinearAlgebra
The text was updated successfully, but these errors were encountered:
julia> a + b
1-element SizedArray{Tuple{1},Int64,1,1} with indices SOneTo(1):
2
julia> a .+ b
1-element SizedArray{Tuple{1},Int64,1,1} with indices SOneTo(1):
2
and
(v1.3) pkg> st StaticArrays
Status `~/.julia/environments/v1.3/Project.toml`
[90137ffa] StaticArrays v0.12.1 #master (https://github.com/JuliaArrays/StaticArrays.jl.git)
[37e2e46d] LinearAlgebra
Possibly related to #734, #537.
Hi All,
I've encountered a problem where adding two
SizedArray
s creates anSArray
, when I'd have thought the outcome would be aSizedArray
:Is this intended?
Cheers,
James
Version info:
The text was updated successfully, but these errors were encountered: