How to convert a Vector of MVectors to a Matrix

Is reduce(hcat, v) good enough? I you don’t want to actually create the matrix but only index into vec as if it were a matrix you can use RecursiveArrayTools.jl:

using RecursiveArrayTools

m = VectorOfArray(vec)

m[:,1] # works

m[1,:] # works as well
2 Likes