A library for matrix exponentiation.