Function create_algebra_as_tensor

  • The implementation of the algebra constructor function.

    Type Parameters

    • T extends U

    Parameters

    • metric: T[]

      Currently limited to the diagonal elements.

    • labels: string[]

      Currently limited to the basis elements or the elements of the algebra.

    • $: ExprContext

    Returns Tensor<U>