JuliaLang/julia — Issue #336: can't infer type of hcat(matrix,vector)
Author: JeffBezanson
Created: 2012-01-13 02:49:05+00:00
State: open
Labels: performance

For example `[rand(2,2) rand(2)]`.

This uses the fallback definition of `cat(dim, x...)`, which handles scalars and everything else. We may need to both work on the function and make some type inference improvements.

We also might want to add some more specializations to `cat` to handle common cases like this.