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 Oct. 31, 2024, 1:08 a.m.