Closed AurusHuang closed 9 months ago
You should just use the unravel_index
function as indicated, but I guess that you are right that this is different in NumPy.
This issue is stale because it has been open for 30 days with no activity. It will be automatically closed in 14 days.
This issue was closed because it has been inactive for 14 days since being marked as stale.
I need an elegant method to find the maximum and minimum values and indices of the entire matrix, like the following:
Currently, there is
argmax
, but it gives flattened index instead of "unravelled" indices. Seems a foolish question but I really get nothing as much as I can find.1013 seems providing an answer but not exactly what I want.