I'm interested in being able to do zero-copy concatenation of 
AbstractArrays, with something similar to ArrayViews, but in reverse:

x = rand(4,2)
y = rand(4,2)
z = hcatview(x,y)  # "view" that is able to index into hcat(x,y) without 
creating the temporary matrix
x[1,1] = 10.0
@assert z[1,1] == x[1,1]

Does this exist already somewhere?  If I was to build it, should I submit a 
PR to somewhere (ArrayViews?) or start a new package?

One of many uses is to generate a large block matrix, potentially composed 
of both dense and sparse matrices.  Bonus points if I can get a 
ContiguousView when "view(z, 1:3, 4:5)" refers to a range that is totally 
encapsulated by a dense child matrix.

Reply via email to