mbauman / RaggedArrays.jl

Experimental package for contiguous arrays with one ragged (or jagged) dimension
Other
5 stars 1 forks source link

Prior art and duplicated functionalities #2

Open mbauman opened 9 years ago

mbauman commented 9 years ago

I hope you don't mind the pings here, @ReidAtcheson and @mauro3. Are the two of you still using and/or interested in ragged arrays? I've implemented this package from scratch to satisfy my need for a general ragged array that can support multiple dimensions. It does require 0.4, however.

The other cool feature here is that it defines an Abstract ragged type that can be easily extended for custom data structures with fancy ragged indexing that just works (check out https://github.com/mbauman/RangeArrays.jl).

Key differences as compared to https://github.com/ReidAtcheson/RaggedArrays.jl:

Key differences as compared to https://bitbucket.org/maurow/ragged.jl/

So… are you interested in collaborating? I think I'd like to register this functionality at some point, but I don't want to trample on your package name, Reid. I'd happily add the two of you as contributors here if you'd like to focus efforts, or I can rename my package if you'd prefer to keep things separate.

mauro3 commented 9 years ago

Thanks for putting this together and asking for collaboration! I'll try and have a look at this in detail although time is even in shorter supply than usual.

I use ragged arrays in https://bitbucket.org/maurow/lmesh.jl. 0.4 is fine for me. The End calculation there I use so that a[:,i] will always give me the i-th row, irrespective of whether its a ragged or normal array. (Well, it also supports things like a[1:end/2,i] but that I don't actually use.) I don't think I use linear indexing in LMesh but I need to check, eachindex would be fine anyway.