Create matrix with choose(n,m) unique rows with m ones in each row the rest 0.
Create a choose(n,m)
by n matrix. The matrix has unique rows with m ones in each row and the rest zeros.
chooseMatrix(n, m)
n |
an integer |
m |
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.
Used for complete enumeration when method='exact.ce' in permTS
M.P.Fay
chooseMatrix(5,2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.