# LinEv2D

AnalysisLibErrType LinEv2D (void *arrayX, int numberRows, int numberColumns, double multiplier, double additiveConstant, void *outputArray);

## Purpose

Performs a linear evaluation of a 2D array. LinEv2D obtains the (i, j)th element of the output array using the following formula:

yi, j = (a × xi, j) + b

LinEv2D 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 | Input array to use as the basis for the linear evaluation. This array must be an array of doubles.
numberRows | integer | Number of rows used in the linear evaluation of the input array.
numberColumns | integer | Number of columns used in the linear evaluation of the input array.
multiplier | double-precision | Multiplicative constant used in the linear evaluation of the input array. Default Value: 1.0.
additiveConstant | double-precision | Additive constant used in the linear evaluation of the input array. Default Value: 0.0.
Output
Name | Type | Description
outputArray | double-precision 2D array | Linear evaluation of the input array in 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.