I want to count the number of equal matrices that I encounter after splitting a large matrix.
mat1 = np.zeros((4, 8)) split4x4 = np.split(mat1, 4)
Now I want to know how many equal matrices are in split4x4, but collections.Counter(split4x4) throws an error. Is there a numpy built-in way for this?
source share