Jeremy Howard wrote:
>
> Karl Glazebrook wrote:
> > Dan Sugalski wrote:
> > This is my view.
> >
> Ditto. As I said yesterday, my current preferred option is that a list ref
> of list refs will also support a multidimensional indexing syntax.
> Furthermore, if it has a single basic data type and is declared ':compact'
> it should be stored in a contiguous block of memory. Finally, I believe that
> we need to adjust RFCs for reduce(), list generation, and
> zip/unzip/partition/reshape to work with n-dim matrices.
>
> Oh, and we also would need to look at how we can hide as much of the
> dereferencing as possible.
I agree with all this, some comments though:
There is a difference between a List of Lists and a multi-dimensional array - the
latter is rectangular, e.g. the rows are all the same size so you don't have to
store the sizes of individual ones. So the latter needs much less storage overhead.
How would you be proposed this be handled transparently? esp. if calling external
C routines.
Reduce functionality equivalent is already available in PDL modules, so I don't
see that as terribly urgent.
Karl