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
From the docstring, "With keyword dims::Integer [...] stack reverses the action of eachslice with the same dims." Those semantics should be extended to dims::Integer....
Yes I think this has an obvious meaning, although with some edge case where ndims(outer) != length(dims). Going by eachslice's move on from dims::Integer, the ETA is Julia 1.17... What does work at the moment is all the trailing dimensions:
julia> y =rand(3,3,3,3);
julia> y ==stack(eachslice(y, dims=(3,4))) ==stack(eachslice(y, dims=(2,3,4)))
true
Perhaps related questions, but easier to implement:
Should there be a stack!?
Python has hstack and vstack, is that too many verbs & too close to hcat etc?
[Edit] At present stack((i,2i) for i in 3:5; dims=4) is forbidden in the name of type-stability. It could allow dims=Val(4) like cat does.
From the docstring, "With keyword
dims::Integer
[...] stack reverses the action ofeachslice
with the same dims." Those semantics should be extended todims::Integer...
.cc @mcabbott, author of
stack
. (#43334)The text was updated successfully, but these errors were encountered: