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
I encountered this when trying to work with block arrays with named blocks, roughly as follows:
using NamedArrays, BlockArrays
mn = mortar(NamedArray([rand(i,j) for i=2:4, j=3:5]))
eachblockrow(x) = (view(x,b,:) for b in blockaxes(x,1))
f(x) = x
processed_block_rows = reduce(vcat, blocks.(f.(eachblockrow(m))))
f.(processed_block_rows) # Fine
f.(NamedArray(processed_block_rows, names(blocks(mn)))) # BoundsError
f.(NamedArray(identity.(processed_block_rows), names(blocks(mn)))) # Workaround
The text was updated successfully, but these errors were encountered:
Thanks for reporting this bug. At first it seemed pretty esoteric to me. I have to admit that I don't understand broadcasting very much. I looks like somehow broadcasting is throwing a Base.Broadcast.Extruded into the situation, I have no idea what that is supposed to do. Maybe @diegozea knows what is going on?
Idk if this is related, but I think I was able to reproduce the error when I forgot to specify the type parameter for an array (any kind really) before operating on it. For example:
A simple reproducer:
I encountered this when trying to work with block arrays with named blocks, roughly as follows:
The text was updated successfully, but these errors were encountered: