def __make_matrix(self, n, val):
        """Create an *n*x*n* matrix, populating it with the specific value."""
        matrix = []
        for i in range(n):
            matrix += [[val for j in range(n)]]
        return matrix
Create an *n*x*n* matrix, populating it with the specific value.
ppdet/metrics/munkres.py