random_sparse#

hypercoil.functional.sparse.random_sparse(shape: Sequence[int], k: int | None = None, *, key: PRNGKey) Tensor[source]#

Generate a batch of random sparse matrices in the top-k format.