lgatr.interface.scalar
Embedding and extracting scalars into multivectors.
Functions
|
Embeds a scalar tensor into multivectors. |
|
Extracts scalar components from multivectors. |
- lgatr.interface.scalar.embed_scalar(scalars)[source]
Embeds a scalar tensor into multivectors.
- Parameters:
scalars (torch.Tensor) – Scalar inputs with shape (…, 1).
- Returns:
multivectors – Multivector outputs with shape (…, 16).
multivectors[..., [0]]
is the same asscalars
. The other components are zero.- Return type:
torch.Tensor