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

The position on the geodesic.

metricstring, default=’riemann’

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

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

Matrices on the geodesic.