pyriemann.utils.tangentspace.tangent_space¶
- pyriemann.utils.tangentspace.tangent_space(X, Cref, *, metric='riemann')¶
Transform matrices into tangent vectors.
Transform matrices into tangent vectors, according to a reference matrix Cref and to a specific logarithmic map.
- Parameters:
- Xndarray, shape (…, n, n)
Matrices in manidold.
- Crefndarray, shape (n, n)
The reference matrix.
- metricstring, default=’riemann’
The metric used for logarithmic map, can be: ‘euclid’, ‘logeuclid’, ‘riemann’.
- Returns:
- Tndarray, shape (…, n * (n + 1) / 2)
Tangent vectors.