We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a[Block()[]]
iszero(ndims(a))
For example:
julia> using BlockArrays julia> a = BlockArray{Float64}(undef) -blocked 0-dimensional BlockArray{Float64, 0}: 1.04e-322 julia> a[] = 2 2 julia> a -blocked 0-dimensional BlockArray{Float64, 0}: 2.0 julia> a[Block()] 0-dimensional Array{Float64, 0}: 2.0 julia> a[Block()][] 2.0 julia> a[Block()[]] 0-dimensional Array{Float64, 0}: 2.0 julia> pkgversion(BlockArrays) v"1.1.1"
The text was updated successfully, but these errors were encountered:
I see, the issue stems from:
julia> Block()[] Block() julia> Block()[CartesianIndex()] Block()
which is defined here: https://github.com/JuliaArrays/BlockArrays.jl/blob/v1.1.1/src/blockindices.jl#L205 and here: https://github.com/JuliaArrays/BlockArrays.jl/blob/v1.1.1/src/blockindices.jl#L59. I assume that should output BlockIndex() (which isn't defined yet, but could be defined as BlockIndex{0,Tuple{},Tuple{}}((), ())).
BlockIndex()
BlockIndex{0,Tuple{},Tuple{}}((), ())
Sorry, something went wrong.
BlockIndex
Successfully merging a pull request may close this issue.
For example:
The text was updated successfully, but these errors were encountered: