next up previous contents
Next: Array Location Intrinsics Up: Selected Intrinsic Functions Previous: Vector and Matrix Multiply

 

Maximum and Minimum Intrinsics

There are two intrinsics in this class:

For example,

The list of source objects are searched from left to right (as indicated in the diagram below). If two values are equal then it is the first that is selected (as also indicated in the diagram below).

  figure8159
Figure 15: Visualisation of the MAX Intrinsic

The MAX and MIN intrinsics may also accept array arguments. The result is the same shape and size as each argument, for example,

Return to corresponding overview page gif


next up previous contents
Next: Array Location Intrinsics Up: Selected Intrinsic Functions Previous: Vector and Matrix Multiply

©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997
Not for commercial use.