powered by
Create a choose(n,m) by n matrix. The matrix has unique rows with m ones in each row and the rest zeros.
choose(n,m)
chooseMatrix(n, m)
an integer
an integer<=n
A matrix with choose(n,m) rows n columns. The matrix has unique rows with m ones in each row and the rest zeros.
permTS
# NOT RUN { chooseMatrix(5,2) # }
Run the code above in your browser using DataLab