[Numpy-discussion] new NEP: np.AbstractArray and np.asabstractarray

Juan Nunez-Iglesias jni.soma at gmail.com
Thu Mar 8 20:51:56 EST 2018


On Fri, Mar 9, 2018, at 5:56 AM, Stephan Hoyer wrote:
> Marten's case 1: works exactly like ndarray, but stores data
> differently: parallel arrays (e.g., dask.array), sparse arrays (e.g.,
> https://github.com/pydata/sparse), hypothetical non-strided arrays
> (e.g., always C ordered).
Two other "hypotheticals" that would fit nicely in this space:
- the Open Connectome folks (https://neurodata.io) proposed linearising
  indices using space-filling curves, which minimizes cache misses (or
  IO reads) for giant volumes. I believe they implemented this but can't
  find it currently.- the N5 format for chunked arrays on disk:
  https://github.com/saalfeldlab/n5
> Finally for the name, what about `asduckarray`? Thought perhaps that
> could be a source of confusion, and given the gradation of duck array
> like types.
I suggest that the name should *not* use programmer lingo, so neither
"abstract" nor "duck" should be in there. My humble proposal is
"arraylike". (I know that this term has included things like "list-of-
list" before but only in text, not code, as far as I know.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180309/302832da/attachment.html>


More information about the NumPy-Discussion mailing list