lgatr.interface.vector

Embedding and extracting vectors into multivectors.

Functions

embed_vector(vectors)

Embed Lorentz vectors into multivectors.

extract_vector(multivectors)

Extract Lorentz vectors from multivectors.

lgatr.interface.vector.embed_vector(vectors)[source]

Embed Lorentz vectors into multivectors.

Parameters:

vectors (Tensor) – Lorentz vectors of shape (..., 4) using the convention (t, x, y, z).

Returns:

Multivectors of shape (..., 16).

Return type:

multivectors

lgatr.interface.vector.extract_vector(multivectors)[source]

Extract Lorentz vectors from multivectors.

Parameters:

multivectors (Tensor) – Multivectors of shape (..., 16).

Returns:

Lorentz vectors of shape (..., 4).

Return type:

vectors