Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy arrays equality

np.array_equal(A,B)  # test if same shape, same elements values
np.array_equiv(A,B)  # test if broadcastable shape, same elements values
np.allclose(A,B,...) # test if same shape, elements have close enough values
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numpy #arrays #equality
ADD COMMENT
Topic
Name
4+1 =