```
# *-* coding: utf-8 *-*

import numpy as np
import scipy as sc

A = np.array([[1,1], [1,2], [3,1]])
B = np.array([[2,3], [3,2], [1,4]])

print (A==B).all()
print np.array_equal(A, B)
print np.array_equiv(A, B)
print np.allclose(A, B)

```

But they just say "False", but I can still add those two arrays. I have to check if an addition/multiplication is allowed (dimension?) and if not, I have to give out an error.