I have a list of 3x3 arrays l
and I want to check if a different single 3x3 array a
is in the list. I tried like this:
a in l
but it couldn't be executed beacuse of the following error:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
I cannot grasp why such a comparison would be ambiguous (the intention is clear), but anyway, is there a way to solve my problem?