From an existing DistributedArrays
dr = DistributedArrays.distribute(rand(2,3,4))
I want to generate a new DistributedArrays which is flattened version of dr with dimensions 3 x 12 by “vcat” out of the following slices:
dr[:,1,:]
dr[:,2,:]
dr[:,3,:]
What will be the most computationally and memory efficient way to achieve this?