The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home MathPack OpenArrays Procedures and Functions MinMaxArray | |||||||
See also: MinMax (Matrix), MinMax (Vector), MaxArray, MinArray | |||||||
MinMaxArray |
|||||||
The function MinMaxArray returns the minimum and the maximum value of the array Src in the variable parameters MinVal and MaxVal.
Please note that versions [1] and [2], and [8] and [9] are actually equivalent. Versions [1] and [8] have been declared for syntactical reasons only: they can be called using an explicit list of values, something like MinMaxArray ([v1,v2,v3,v4], MinVal, MaxVal);while versions [2] and [9] cannot be called this way (the compiler does not resolve the TDoubleArray declaration). Versions [3], [5], [10] and [12] provide additional information and can be restricted to a particular range of array elements. The parameters FirstIx and LastIx define the search range for versions [3] and [10], the parameters LowCol, LowRow, HighCol and HighRow specify the search range of versions [5] and [12]. The variable parameters MinIx and MaxIx (versions [3] and [10]) and MinCol, MinRow, MaxCol, MaxRow (versions [5] and [12]) return the indices of the found minimum and maximum. The function returns a zero value if everything is OK and the MinVal and MaxVal parameters contain the minimum and maximum. The function returns the following error codes: 0 ... everything is OK, the returned value is valid
|