Skip to content

Conversation

@Enderdead
Copy link
Contributor

This merge request introduces the kron delegate function (#100).

All supported backends already implement the kron function. However, I wasn’t able to add support for the sparse backend because it requires all input sparse matrices to have a fill_value equal to zero (not the case in the test) - likely to avoid generating a large dense matrix.

If you’d like to discuss potential support for kron in PyData Sparse, please let me know!

Feedback is welcome.

@lucascolley lucascolley self-requested a review November 9, 2025 16:07
@lucascolley lucascolley added this to the 0.9.1 milestone Nov 9, 2025
@Enderdead
Copy link
Contributor Author

The test fails with the tests-numpy1 environment. I’m not able to reproduce this behavior on my machine (weird...).
The issue occurs when an input shape contains a zero.

I can update my delegation strategy to avoid delegating when the product of the shape elements equals zero (when using NumPy).

What do you think about this?

@lucascolley lucascolley added the enhancement New feature or request label Nov 9, 2025
@lucascolley
Copy link
Member

pixi run -e tests-numpy1 tests does reproduce the failures on my machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants