pyriemann.geometry.tangentspace.exp_map

pyriemann.geometry.tangentspace.exp_map(X, Cref, *, metric='riemann')[source]

Project matrices back to manifold by exponential map.

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

Matrices in tangent space.

Crefndarray, shape (n, n)

Reference matrix.

metricstring | callable, default=”riemann”

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

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

Matrices in manifold.

Notes

Added in version 0.9.

Changed in version 0.12: Add support for NumPy and PyTorch.