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
It seems that Base's structured matrices when wrapping static matrices inconsistently propagate that size information to output types of functions on v0.12.3. e.g.
julia> x =@SMatrixrandn(3, 3)
3×3 SArray{Tuple{3,3},Float64,2,9} with indices SOneTo(3)×SOneTo(3):-1.6129-0.686314-1.429190.2890510.1923840.1700770.8779490.25176-0.0438329
julia> s =Symmetric(@SMatrixrandn(3, 3))
3×3 Symmetric{Float64,SArray{Tuple{3,3},Float64,2,9}}:0.324670.1934860.4261710.1934860.1119741.331370.4261711.33137-0.731089
julia> x * s # size information lost3×3 Array{Float64,2}:-1.26553-2.2917-0.556250.2035520.3039050.2549780.3150750.1397040.741387
julia> x + s # size information kept3×3 SArray{Tuple{3,3},Float64,2,9} with indices SOneTo(3)×SOneTo(3):-1.28823-0.492828-1.003010.4825370.3043581.501451.304121.58313-0.774922
The text was updated successfully, but these errors were encountered:
Yep I guess this is a bug. A reasonable fix would be to upgrade all our linear algebra stuff to dispatch on StaticArrayLike. (There's no way to solve this in a truly generic way without extra support for more sophistocated dispatch in LinearAlgebra.)
It seems that Base's structured matrices when wrapping static matrices inconsistently propagate that size information to output types of functions on v0.12.3. e.g.
The text was updated successfully, but these errors were encountered: