How to take complex conjugate of complex BCOO array #18713
-
Hi, As the title says, I'm just wondering what the "correct" way of taking the complex conjugate of a BCOO array is. Asking as |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi - there's not yet a sparse rule for You could work around it by calling sparse.sparsify(lambda x: jnp.real(x) - jnp.imag(x))(x) I'll work on adding |
Beta Was this translation helpful? Give feedback.
-
Actually @jakevdp I just realized there is an issue with your suggested temporary solution:
seems to work, but:
actually raises the error:
So it seems that there is some issue if |
Beta Was this translation helpful? Give feedback.
Hi - there's not yet a sparse rule for
conj
(though it wouldn't be hard to add)You could work around it by calling
real
andimag
, which are defined:I'll work on adding
conj
support in sparsify.