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
julia>zeros(SMatrix{2,2,ComplexF64,4})
2×2 SMatrix{2, 2, ComplexF64, 4} with indices SOneTo(2)×SOneTo(2):0.0+0.0im0.0+0.0im0.0+0.0im0.0+0.0im
julia>ones(SMatrix{2,2,ComplexF64,4})
2×2 SMatrix{2, 2, ComplexF64, 4} with indices SOneTo(2)×SOneTo(2):1.0+0.0im1.0+0.0im1.0+0.0im1.0+0.0im
These should return a 0-dim Array with the only element being a 2x2SMatrix. zeros and ones are documented to return an Array, and the number of dimensions provided as arguments should match the dimension of the returned array. In particular, zeros(T) should be consistent with fill(zero(T)):
These should return a 0-dim
Array
with the only element being a2x2
SMatrix
.zeros
andones
are documented to return anArray
, and the number of dimensions provided as arguments should match the dimension of the returned array. In particular,zeros(T)
should be consistent withfill(zero(T))
:The text was updated successfully, but these errors were encountered: