Sparse-Tensor Methods in Physics