I have a numpy array with shape (1,x,1)
and the second one also with shape (1,x,1)
. I wonder how can I check whether they are the same? Examples:
1. First:
[[[ 2]
[ 3]
[ 4]
[ 5]
[ 6]
[ 7]
[ 8]
[ 9]
[ 4]
[ 6]
[10]]]
Second:
[[[ 2]
[ 3]
[ 4]
[ 5]
[ 6]
[ 7]
[ 8]
[ 9]
[ 4]
[ 6]
[10]]]
Response: True
2.
First:
[[[ 2]
[ 3]
[ 4]
[ 5]
[ 6]
[ 7]
[ 8]
[ 9]
[ 4]]]
Second:
[[[ 1]
[ 2]
[ 3]
[ 5]
[ 6]
[ 2]
[ 8]
[ 3]
[ 5]]]
Response: False