mhostetter / galois

A performant NumPy extension for Galois fields and their applications
https://mhostetter.github.io/galois/
MIT License
295 stars 27 forks source link

add support for scipy #514

Open ktotam1 opened 9 months ago

ktotam1 commented 9 months ago

it would be nice to be able to use certain methods of scipy, such as scipy.linalg.null_space, which numpy does not have.

mhostetter commented 9 months ago

I agree this would be nice. However, currently SciPy doesn't support subclasses of ndarray. Also, there are no hooks in np.ndarray that can catch and override SciPy function calls. If you know of a way, I'm very open to the idea.

For the specific feature you mentioned, maybe consider this method https://mhostetter.github.io/galois/latest/api/galois.FieldArray.null_space/.