FixedSizeArrays.jl icon indicating copy to clipboard operation
FixedSizeArrays.jl copied to clipboard

hcat, vcat, hvcat, and cat

Open schmrlng opened this issue 10 years ago • 2 comments

When using ImmutableArrays.jl, the fact that everything is a subtype of Base.AbstractArray makes the various concatenation operations work automatically (promoting everything to a dense array, which seems reasonable when you're already growing array sizes). On the roadmap it looks like inheriting from AbstractArray is an eventual goal; do you have an idea of what work needs to get done to make that happen? If it seems pretty far off, in the mean time would it make sense to PR in some hacks (also for slicing, etc.)?

schmrlng avatar Oct 07 '15 20:10 schmrlng

Yes, it is relatively far off, mainly due to time constraints and priorities :( The issues to look out for are: JuliaLang/julia#13157, JuliaLang/julia#11610 and JuliaLang/julia#11902 The first two are somewhat interchangable, but at least one of them needs to be resolved. The last is just helpful ;) If you have some time and want to play around with slices and stuff like that, feel free to open PR's! If things are not documented well enough, feel free to ask any questions here or on gitter!

Best, Simon

SimonDanisch avatar Oct 07 '15 20:10 SimonDanisch

Just a note that I started looking at this (see the first commit on the concatenation branch which contains a partial implementation), but may not get back to it for a little while.

c42f avatar Jul 11 '16 02:07 c42f