pyriemann.utils.tangentspace.untangent_space

pyriemann.utils.tangentspace.untangent_space(T, Cref, *, metric='riemann')

Transform tangent vectors back to matrices.

Transform tangent vectors back to matrices, according to a reference matrix Cref and to a specific exponential map.

Parameters
Tndarray, shape (…, n * (n + 1) / 2)

Tangent vectors.

Crefndarray, shape (n, n)

The reference matrix.

metricstring, default=’riemann’

The metric used for exponential map, can be: ‘euclid’, ‘logeuclid’, ‘riemann’.

Returns
Xndarray, shape (…, n, n)

Matrices in manidold.