MAINT: expm now works for numpy matrices as input, including a test