Is there an built-in way to convert a vector to a column matrix without transposing twice? I can make a matrix into a vector with vec or squeeze, but I can't see a simple way to convert from a 1d array to a 2d without initialising it, calling reshape and having to measure the size.
I've put this definition in my .juliarc: colmat{T}(x::Array{T, 1}) = reshape(x, (length(x), 1)) and do colmat(linspace(0, 10)), for example. Is there a better way?