Array conversion

How can we convert a 2-element array where each element is a row vector of size N to an array of size 2 by N?

Thanks

If the vectors are just one dimensional arrays, then vcat(transpose(test)...) is an option.

If they’re each row vectors, you can do reduce(vcat, v). If they’re actually column vectors, you can do reduce(vcat, v'), since transpose/adjoint is recursive.

This is not the definition of Vector?

Julia’s one dimensional arrays are column vectors. Since OP mentions row vectors (which are 1 x n two dimensional arrays in Julia), I wanted to make the distinction.

1 Like

Thanks!