b =np.ndarray(shape=(5,5), dtype=int, order='F')
Out[142]:
array([[ 1, 65536, 0, 0, 0],
[ 0, 0, 1, 65536, 0],
[16777216, 0, 0, 0, 1],
[ 0, 256, 16777216, 0, 0],
[ 0, 0, 0, 256, 16777216]])
and I have a list, such as :
a = [1,23,4,5,20,0...]
I would like to check for each index if the value in a is in the corresponding row in b , as np.isin(a[0], b[0]) and to receive Boolean vector for all the rows (if a[i] is in b[i]).
The length of a is equal the length of b (amount of rows).