It would be useful to have a function like https://athemathmo.github.io/rulinalg/doc/rulinalg/utils/fn.argmax.html