Compute the matrix cosine.
This routine uses expm to compute the matrix exponentials.
A : (N, N) array_like
Input array
cosm : (N, N) ndarray
Matrix cosine of A
scipy.linalg.logm
scipy.linalg.sinm
Enter search terms or a module, class or function name.