Signature
Signature(permutation-list)
determine if the
permutation-list
has odd (-1
) or even (1
) parity. Returns0
if two elements in thepermutation-list
are equal.
See
Examples
>> Signature({1,2,3,4})1
>> Signature({1,4,3,2})-1
>> Signature({1,2,3,2})0
Implementation status
- ✅ - full supported