AnalysisLibErrType Sub2D (void *arrayX, void *arrayY, int numberRows, int numberColumns, void *outputArray);
Subtracts two 2D arrays, element by element. Sub2D obtains the (i, j)th element of the output array using the formula:
zi, j = xi, j – yi, j
Sub2D can perform the operation in place; that is, the input and output arrays can be the same.
Input | ||
Name | Type | Description |
arrayX | numeric array | First array used in the array subtraction operation. This array must be an array of doubles. |
arrayY | numeric array | Second array used in the array subtraction operation. This array must be an array of doubles. |
numberRows | integer | Number of rows used in the array subtraction operation. |
numberColumns | integer | Number of columns used in the array subtraction operation. |
Output | ||
Name | Type | Description |
outputArray | numeric array | Result array, which is an array of doubles. |
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |