[SciPy-Dev] Allow non-canonical form in COO?

Ralf Gommers ralf.gommers at gmail.com
Thu Apr 26 00:39:06 EDT 2018


On Mon, Apr 23, 2018 at 9:02 AM, Hameer Abbasi <einstein.edison at gmail.com>
wrote:

> Hello SciPy-Dev,
>
> I submitted a pull request <https://github.com/pydata/sparse/pull/141> to
> pydata/sparse <https://github.com/pydata/sparse> (I’m one of its
> maintainers) about always keeping a COO array in canonical form.
>
> We (Matthew Rocklin, CJ Carey and I) were having a discussion there about
> whether it makes sense to allow sparse COO arrays to be in non-canonical
> order. In short, canonical form is:
>
>    - Coordinates are sorted in lexographical order, i.e., the same order
>    they would appear in in a C-contiguous array.
>    - There are no duplicate coordinates allowed.
>    - There are no stored coordinates with a zero value.
>
> With this in mind, what are the SciPy developers’ opinions on this? Does
> allowing COO arrays to be in non-canonical form make sense? Feedback
> welcome on the PR or the mailing list.
>
>
Your PR as it is now makes sense to me. Thanks for keeping this list in the
loop on important decisions about sparse arrays.

Cheers,
Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20180425/98358ad2/attachment.html>


More information about the SciPy-Dev mailing list