full_as_topk#

hypercoil.functional.sparse.full_as_topk(tensor: Tensor) BCOO[source]#

Represent a batch of full tensors in top-k sparse matrix format.

This is strictly less efficient than standard full tensor format, but provides compatibility with functions that operate only on top-k sparse matrices.