I think that implementing version of hcat
/vcat
which
- takes a vector of arrays,
- calculates the final size and type,
- does the copying
would be worthwhile.
Whether this could be a method of hcat
etc is an API design question. IMO a different function name would be best, but perhaps someone can come up with a signature that would fit in nicely with existing ones.