pyriemann.geometry.base.powm¶
- pyriemann.geometry.base.powm(C, alpha)[source]¶
Power of SPD/HPD matrices.
The symmetric matrix power \(\alpha\) of a SPD/HPD matrix \(\mathbf{C}\) is defined by:
\[\mathbf{D} = \mathbf{V} \left( \mathbf{\Lambda} \right)^{\alpha} \mathbf{V}^H\]where \(\mathbf{\Lambda}\) is the diagonal matrix of eigenvalues and \(\mathbf{V}\) the eigenvectors of \(\mathbf{C}\).
- Parameters:
- Cndarray, shape (…, n, n)
SPD/HPD matrices.
- alphafloat
The power to apply.
- Returns:
- Dndarray, shape (…, n, n)
Matrix power of C.
Notes
Changed in version 0.12: Add support for NumPy and PyTorch.