Open christian-cahig opened 2 years ago
Sorry for the delay in getting to this, somehow didn't notice it. Thank you so much for this report. Right now CSR hasn't been tested with complex data types (my use cases are all real-valued) - that sounds like a useful feature to add. I don't expect there would be fundamental problems assuming Numba supports all the required operations (although it may restrict things to the Numba kernel), we just need to add tests & shake out the relevant problems.
@mdekstrand anyway, regarding the use case that prompted my opening of this issue, I managed to reformulate some stuff by breaking up real and imaginary parts and some algebra. It's slightly more complex (ha unexpected pun) but at least it will allow me to use CSR for some Numba acceleration.
@christian-cahig Good news, thanks! If you encounter any other problems let me know :).
I've started adding tests for complex CSR in a branch on my fork (mdekstrand/csr).
Hi, I was playing with CSR as a prospect tool for using sparse matrices in Numba. In my use case, multiplication of a complex matrix and a complex vector is common, e.g.,
However, the last line in the above snippet raises a
TypingError
, i.e.,