The functions compMin and compMax take the minimum and maximum, respectively, of a list of lists of integers (or elements of another partially ordered set) by considering each component separately.
i1 : L = {{3,4,1},{5,8,1},{10,2,7}}
o1 = {{3, 4, 1}, {5, 8, 1}, {10, 2, 7}}
o1 : List
|
i2 : compMin L
o2 = {3, 2, 1}
o2 : List
|
i3 : compMax L
o3 = {10, 8, 7}
o3 : List
|
The usage compMin(L1,L2) gives the same output as compMin {L1,L2}.
If L is empty it will be returned unchanged.
The object compMin is a method function.