allPerms: Generate permutations

allPermsR Documentation

Generate permutations

Description

Generate all permutations of 1 to n, as rows of a matrix

Usage

allPerms(n)

Arguments

n

size of permutations

Value

an n!xn matrix whose rows give permutations

Examples

allPerms(4)


MSCquartets documentation built on April 4, 2025, 5:14 a.m.