levi_cevita_maps

levi_cevita_maps(k): 

LLM Docstring

Return the nonzero index tuples and their signs for the rank-k Levi-Civita symbol.

The nonzero entries sit at the permutations of 0..k-1, each carrying the sign of that permutation.

  • k: int

    the tensor rank

  • :returns: tuple[np.ndarray, np.ndarray]

    (permutation_indices, signs)


Feedback

Examples

Templates

Documentation