-
'jnp.power' or operator '**' will raise error "sparse rule for integer_pow is not implemented"
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Currently no, the general power operation is not supported for BCOO matrices. This is because in general, That said, your question made me realize that we could implement |
Beta Was this translation helpful? Give feedback.
Currently no, the general power operation is not supported for BCOO matrices. This is because in general,
jnp.power(0, x)
does not equal zero, and so the operation is not safe on sparse matrices.That said, your question made me realize that we could implement
lax.integer_pow
for sparse matrices, because the exponent is static and we can limit it to positive values whereinteger_pow(0, x)
does equal zero.