Qurak

PermutationMatrix

లభ్యం

Permutation matrix of a permutation list or Cycles object

PermutationMatrix[permv]
PermutationMatrix[pmat]
pm = PermutationMatrix[{4, 1, 3, 2}] → {{0, 0, 0, 1}, {1, 0, 0, 0}, {0, 0, 1, 0}, {0, 1, 0, 0}}pm = PermutationMatrix[Cycles[{{1, 4, 3}, {2, 5}}]] → {{0, 0, 0, 1, 0}, {0, 0, 0, 0, 1}, {1, 0, 0, 0, 0}, {0, 0, 1, 0, 0}, {0, 1, 0, 0, 0}}

అంశాలు

సంబంధితమైనవి

మొత్తం 6300 ఫంక్షన్లు · దీన్ని MCP క్లయింట్ నుండి వాడండి