This function comes from mne-python/decoding/csp.py Approximate joint diagonalization based on Pham’s algorithm.
This is a direct implementation of the PHAM’s AJD algorithm [1].
A set of covariance matrices to diagonalize.
The tolerance for stoping criterion.
The maximum number of iteration to reach convergence.
The diagonalizer.
The set of quasi diagonal matrices.
References
Pham, Dinh Tuan. “Joint approximate diagonalization of positive definite Hermitian matrices.” SIAM Journal on Matrix Analysis and Applications 22, no. 4 (2001): 1136-1152.