pyriemann.utils.geodesic.geodesic

pyriemann.utils.geodesic.geodesic(A, B, alpha, metric='riemann')

Geodesic between matrices according to a metric.

Return the matrix at the position alpha on the geodesic between matrices A and B according to a metric.

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

First matrices.

Bndarray, shape (…, n, n)

Second matrices.

alphafloat

Position on the geodesic.

metricstring | callable, default=”riemann”

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

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

Matrices on the geodesic.