spd_learn.functional.untril_embed#
- spd_learn.functional.untril_embed(v: Tensor, n: int) Tensor[source]#
Inverse of
tril_embed().Reconstructs a hollow symmetric matrix from its scaled lower-triangular embedding vector.
- Parameters:
v (torch.Tensor) – Vectorized hollow symmetric matrix of shape (…, n*(n-1)//2).
n (int) – Dimension of the square matrix to reconstruct.
- Returns:
Hollow symmetric matrix of shape (…, n, n).
- Return type: