I was checking out one code snippets, there was a code like below
z = [[True, False, True],[True, True, True],[False, False, False]]
xz, yz = np.where(z)
print(xz)
print(yz)
This returns
[0 0 1 1 1]
[0 2 0 1 2]
If I make
z = [[True, False, True],[True, True, True]]
I will get the same results as
[0 0 1 1 1]
[0 2 0 1 2]
When I make
z = [[True, False],[True, True]]
The result is
[0 1 1]
[0 0 1]
I was not able to find out what's it doing, This was presented in SynthText repo on github. I would be appreciated if any one could help to understand what it does? And what's its application?