pyriemann.utils.geodesic.geodesic_logchol

pyriemann.utils.geodesic.geodesic_logchol(A, B, alpha=0.5)

Log-Cholesky geodesic between SPD/HPD matrices.

The matrix at position \(\alpha\) on the log-Cholesky geodesic between two SPD/HPD matrices \(\mathbf{A}\) and \(\mathbf{B}\) is given in [1].

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

First SPD/HPD matrices.

Bndarray, shape (…, n, n)

Second SPD/HPD matrices.

alphafloat, default=0.5

Position on the geodesic.

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

SPD/HPD matrices on the log-Cholesky geodesic.

Notes

..versionadded:: 0.7

References

[1]

Riemannian geometry of symmetric positive definite matrices via Cholesky decomposition Z. Lin. SIAM J Matrix Anal Appl, 2019, 40(4), pp. 1353-1370.