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)

Reference matrix.

metricstring | callable, default=”riemann”

Metric used for exponential map, can be: “euclid”, “logeuclid”, “riemann”, or a callable function.

Returns:
Xndarray, shape (…, n, n)

Matrices in manifold.