pyriemann.utils.tangentspace.log_map

pyriemann.utils.tangentspace.log_map(X, Cref, *, metric='riemann')

Project matrices in tangent space by logarithmic map.

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

Matrices in manifold.

Crefndarray, shape (n, n)

Reference matrix.

metricstring | callable, default=”riemann”

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

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

Matrices projected in tangent space.

Notes

Added in version 0.9.