Skip to content

Does the BCCO sparse matrix not support the operation power? #14845

Answered by jakevdp
yank666 asked this question in Q&A
Discussion options

You must be logged in to vote

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 where integer_pow(0, x) does equal zero.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jakevdp
Comment options

@yank666
Comment options

@yank666
Comment options

@jakevdp
Comment options

@yank666
Comment options

Answer selected by yank666
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