|
compare
|
The compare Function returns 0 if both NumMatrix arguments are equivalent.
If NumMatrix1 is less than NumMatrix2, then -1 is returned. If NumMatrix1 is greater than
NumMatrix2, then +1 is returned. Two NumMatrices are equal if all of the values from both
are equal.
Use the compare function when you wish to compare two arguments of the same Data Type and the result value needs to be represented as a numeric (0, 1 or -1). If a Boolean result is desired, then the Comparison Functions (=, <>, <, <=, >, >=) or the compareEQ, compareNE, compareGT, compareGE, compareLT, compareLE should be used instead.
Returns 0 if NumMatrices are equal, Returns -1 if NumMatrix1 is less than NumMatrix2,
returns +1 if NumMatrix1 is greater than NumMatrix2.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types nummatrix1 The first NumMatrix to be compared NumMatrix nummatrix2 The second NumMatrix to be compared NumMatrix
Returns:
Examples
Argument Types
How do I contact the AIS team?