permn

Generate permutations of 1:n and permutation parity.

現在この提出コンテンツをフォロー中です。

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.

引用

Kenneth Johnson (2026). permn (https://jp.mathworks.com/matlabcentral/fileexchange/87749-permn), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: permutationparity

Add the first tag.

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0