# Div2D

AnalysisLibErrType Div2D (void *arrayX, void *arrayY, int numberRows, int numberColumns, void *outputArray);

## Purpose

Divides two 2D arrays, element by element. Div2D obtains the (i, j)th element of the output array using the following formula:

Div2D can perform the operation in place; that is, the input and output arrays can be the same.

## Parameters

Input
Name | Type | Description
arrayX | numeric array | The dividend array of the array division operation. This array must be an array of doubles.
arrayY | numeric array | The divisor array of the array division operation. This array must be an array of doubles.
numberRows | integer | Number of rows used in the array division operation.
numberColumns | integer | Number of columns used in the array division operation.
Output
Name | Type | Description
outputArray | numeric array | Result array, which is an array of doubles.

## Return Value

Name | Type | Description
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants.