generalized permutation matrix

Matrix with exactly one nonzero entry in each row and each column