Compiling Structured Tensor Algebra