I try to get a list of the indexes of the largest elements in each row
a = np.arange(16).reshape((4, 4))
print(a)
print(np.amax(a, axis=1))
print(np.where(a == np.amax(a, axis=1)))
this is the result:
I get the largest matrix where .
in this case the result list that I want to obtain would be:
[3, 3, 3, 3]
which is in the column that is the element