I\'ve got a list (used as a stack) of numpy arrays. Now I want to check if an array is already in the list. Had it been tuples for instance, I would simply have written some
To test if an array equal to a is contained in the list my_list, use
a
my_list
any((a == x).all() for x in my_list)