spd_learn.functional.exp_map#
- spd_learn.functional.exp_map(X, Cref, *, metric='riemann', **kwargs)[source]#
Project matrices back to manifold by exponential map.
- Parameters:
X (ndarray, shape (..., n, n)) – Matrices in tangent space.
Cref (ndarray, shape (n, n)) – Reference matrix.
metric (string | callable, default="riemann") – Metric used for exponential map, can be: “euclid”, “logchol”, “logeuclid”, “riemann”, “wasserstein”, or a callable function.
**kwargs (dict) –
The keyword arguments passed to the sub function.
Added in version 0.12.
- Returns:
X_original – Matrices in manifold.
- Return type:
ndarray, shape (…, n, n)
Notes
Added in version 0.9.
Changed in version 0.12: Add support for NumPy and PyTorch.