BlockArrays.jl
BlockArrays.jl copied to clipboard
v[Block(1,2)] should error
This should throw an error:
julia> v = BlockArray(randn(3),1:2)
2-blocked 3-element BlockVector{Float64, Vector{Vector{Float64}}, Tuple{BlockedUnitRange{ArrayLayouts.RangeCumsum{Int64, UnitRange{Int64}}}}}:
-0.5110413514378647
───────────────────
0.5939308866063546
-0.9983642145180261
julia> v[Block(1,2)]
1×1-blocked 1×1 BlockMatrix{Float64, Matrix{Matrix{Float64}}, Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}:
-0.5110413514378647
Probably missing a blockboundscheck in the view implementation.