spd_learn.functional.log_map_olm#

spd_learn.functional.log_map_olm(C: Tensor) → Tensor[source]#

Off-Log Metric (OLM) logarithmic map [Hu et al., 2025].

Maps a correlation matrix \(C \in \mathcal{C}_{++}^n\) to the hollow symmetric tangent space \(\text{Hol}(\mathcal{S}^n)\):

\[\Phi_{\text{OLM}}(C) = \text{off\_diag}(\log(C))\]
Parameters:

C (torch.Tensor) – Correlation matrices of shape (…, n, n).

Returns:

Hollow symmetric tangent matrix of shape (…, n, n).

Return type:

torch.Tensor