linalg:amax
(linalg:amax array &optional axis keepdims)
Returns the largest element of a vector or matrix. An empty array signals an error. For the index of the largest element, use linalg:argmax; the counterpart for the smallest element is linalg:amin.
With an integer axis (negative counts from the end) it reduces along that axis instead, following the axis and keepdims rules of linalg:sum. The reduction is a strict-comparison fold: the first element wins ties and a NaN never replaces the seed. An empty array or axis signals an error.