I'm currently utilizing the Eigen library within my C++ project, and I'm working with a tensor tensorA defined as {2.02, -4.2, 2.2, 2.2}. My question pertains to the behavior of the argmax() function when applied to this tensor.
Specifically, when I call argmax() on tensorA, should I expect the result to consistently return the index of the first occurrence of the maximum value, the index of the last occurrence, or is the behavior undetermined and may vary across different environments or versions of Eigen?