Skip to content

GF2 sparse arrays supported? #419

Answered by mhostetter
amirebrahimi asked this question in Q&A
Discussion options

You must be logged in to vote

SciPy isn't currently tested against. This morning I tried instantiating a scipy.sparse matrix and getting the finite field ufuncs to trigger and could not.

For instance, I found these methods __add__(), _add_dense(), and _add_spare() in scipy.sparse.bsr_array. However, I wasn't able to get any to use the custom finite field ufuncs constructed by FieldArray -- addition is available as FieldArray._add.ufunc, for example.

I would be happy to support them, but I haven't found the best integration with NumPy ufuncs / Numba. The principle mechanism that galois overrides of ndarray in FieldArray is __array_ufunc__(), which handles the ufunc dispatching. I haven't found such a hook in scipy.sparse

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amirebrahimi
Comment options

Answer selected by amirebrahimi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants