pymel.util.min

static util.min(*args, **kwargs)

min(iterable[, key=func[, axis=(axis0, axis1, ...)]]) –> value min(a, b, c, ...[, key=func[, axis=(axis0, axis1, ...)]]) –> value

With a single iterable argument, return its smallest item. With two or more arguments, return the smallest argument. If the iterable argument is an Array instance, returns the smallest component of iterable. If axis are specified will return an Array of element-wise min(x) for x in a.axisiter(*axis).

>>> A = Array([[6,3,4],[1,5,0.5]])
>>> print A.formated()
[[6, 3, 4],
 [1, 5, 0.5]]
>>> min(A)
0.5
>>> min(A, axis=(0,1))
0.5
>>> min(A, axis=0)
Array([1, 3, 0.5])
>>> min(A, axis=1)
Array([3, 0.5])

Previous topic

pymel.util.mergeCascadingDicts

Next topic

pymel.util.modf

Core

Core Modules

Other Modules

This Page