How to find the indexes of 10 highest numbers in a 14x14 numpy matrix efficiently? I want the output to be tuples of the indexes where the maximum numbers are located printed in the order of the highest number to the least. I tried using argsort but that only takes in one axis to sort against. This is not a duplicate because it is specifically asking for a 2d array and the answers of the other question only apply to a 1d array.
For example:
[[0,1,2],
[3,4,5],
[6,7,8]]
(2,2,8)
(1,2,7)
(0,2,6)