Main Content

Smallest and largest elements

`[`

computes the smallest and largest values based on the dimensions specified in the
vector `S`

,`L`

] = bounds(`A`

,`vecdim`

)`vecdim`

. For example, if `A`

is a matrix,
then `bounds(A,[1 2])`

returns the smallest and largest values over
all elements in `A`

, since every element of a matrix is contained
in the array slice defined by dimensions 1 and 2.