Tensorex.permutation
You're seeing just the function
permutation
, go back to Tensorex module for more information.
Specs
permutation(pos_integer()) :: t()
Returns a permutation tensor (also called Levi-Civita or Eddington tensor).
iex> Tensorex.permutation(3)
%Tensorex{data: %{[0, 1, 2] => 1, [0, 2, 1] => -1,
[1, 0, 2] => -1, [1, 2, 0] => 1,
[2, 0, 1] => 1, [2, 1, 0] => -1}, shape: [3, 3, 3]}