spd_learn.functional.real_covariance#
- spd_learn.functional.real_covariance(X: Tensor) Tensor[source]#
Computes the real-valued covariance matrix of time series data.
- Parameters:
X (torch.Tensor) – Input tensor of shape (…, C, T), where C is the number of channels and T is the number of time samples.
- Returns:
Real part of the covariance matrix, with shape (…, C, C).
- Return type: