National Instruments 320682C Musical Toy Instrument User Manual


 
Analysis Library Chapter 3
LabWindows/CVI Standard Libraries 3-22 © National Instruments Corporation
LinEv2D
int
status
=
LinEv2D
(void *
inputArray
, int
numberofRows
, int
numberofColumns
,
double
multiplier
, double
additiveConstant
,
void *
outputArray
);
Purpose
Performs a linear evaluation of a 2D array. The function obtains the (ith, jth) element of the
output array by using the following formula.
y
i,j
= a* x
i,j
+ b
The function performs the operation in place; that is,
inputArray
and
outputArray
can be the
same array.
Parameters
Input
inputArray
double-precision 2D
array
Input array.
numberofRows
integer Number of elements in first
dimension.
numberofColumns
integer Number of elements in second
dimension.
multiplier
double-precision Multiplicative constant.
additiveConstant
double-precision Additive constant.
Output
outputArray
double-precision 2D
array
Linearly evaluated array.
Return Value
status
integer Refer to error codes in
Table 3-2.