Skip to content

Bug: linalg.kron is not correct for matrices of ndims > 2 #640

@jessegrabowski

Description

@jessegrabowski

Description

See these discussions:

The fix is easy enough, we just have to switch from the scipy implementation to the numpy implementation. We can follow the JAX implementation here.

An alternative would be to keep our implementation, but BlockWise it so that the ndim > 2 case just broadcasts over the additional dimensions. It would make us equivalent to jax.vmap(jnp.kron)(A, B) by default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions