Combinatorics.jl icon indicating copy to clipboard operation
Combinatorics.jl copied to clipboard

Levi-Civita call is unhelpful.

Open andrewkhardy opened this issue 2 years ago • 0 comments

I would expect the function levicivita to take the permutations iterator as an input, so that something like this

Using Combinatorics
vectors = [[1],[2],[2]]
perms = permutations(vectors)
lvtensor = levicivita(perms)
parr = collect(perms)
for i in 1:size(parr)
     result += lvtensor[i]*prod(parr[i])

does the Einstein summation that the tensor is used for. What is the actual syntax for this and is it possible to change it to the more proper / intuitive syntax?

andrewkhardy avatar Apr 12 '23 18:04 andrewkhardy