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
If x is a SVector then broadcast(f, x', ...) should return a StaticArray. Currently the broadcasting falls back to Base except for broadcasts with a scalar. For example
x =SVector(1, 1)
1.+ x'
returns a RowVector{T, SVector{2, T}}.
The text was updated successfully, but these errors were encountered:
We can't have that all statically-sized arrays are <: StaticArray. The RowVector code in Base is designed to be compatible with packages like StaticArrays (to wrap RowVector on the outside). Trait-based dispatch would help to express static-sizeness better...
However, the problem is that not all operations work on RowVector{<:StaticArray}. e.g.
julia 0.6> x =SVector(2,3)
2-element SVector{2,Int64}:23
julia 0.6> x'.+ x
2×2 Array{Int64,2}:4556
If
x
is aSVector
thenbroadcast(f, x', ...)
should return aStaticArray
. Currently the broadcasting falls back to Base except for broadcasts with a scalar. For examplereturns a
RowVector{T, SVector{2, T}}
.The text was updated successfully, but these errors were encountered: