(rontolisp) docs
← Functions

linalg:amin

(linalg:amin array &optional axis keepdims)

Returns the smallest element of a vector or matrix. An empty array signals an error. For the index of the smallest element, use linalg:argmin; the counterpart for the largest element is linalg:amax.

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.