Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python numpy arrays equal

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: #python #numpy #arrays #equal
ADD COMMENT
Topic
Name
5+9 =