permn

Generate permutations of 1:n and permutation parity.

Sie verfolgen jetzt diese Einreichung

For positive integer n, [p,s] = permn(n) returns all permutations of 1:n as a matrix, size-[factorial(n),n], and also returns the permutation parity s, size-[factorial(n),1]. s(j) is +1 for an even permutation p(j,:), and -1 for an odd permutation.

Zitieren als

Kenneth Johnson (2026). permn (https://de.mathworks.com/matlabcentral/fileexchange/87749-permn), MATLAB Central File Exchange. Abgerufen .

Quellenangaben

Inspiriert von: permutationparity

Add the first tag.

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.0.0