Speeding up matrix exponential and matrix multiplication

This expands on it: