Abs1D
AnalysisLibErrType Abs1D (double inputArray[], ssize_t numberOfElements, double outputArray[]);
Purpose
Finds the absolute values of the array elements.
Abs1D can perform this operation in place; that is, the input and output arrays can be the same.
The following example uses the Abs1D function.
double inputArray[10], negatedArray[10], outputArray[10];
AnalysisLibErrType status;
// Generate an array of random numbers
status = Uniform (10, 17, inputArray);
// Negate inputArray
status = Neg1D(inputArray, 10, negatedArray);
status = Abs1D (negatedArray, 10, outputArray);
Parameters
Input | ||
Name | Type | Description |
inputArray | double [] | The input array whose values are converted to absolute values and stored in the output array. |
numberOfElements | ssize_t | Number of elements to convert to absolute values. |
Output | ||
Name | Type | Description |
outputArray | double [] | Absolute values of the input array. |
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. |
Additional Information
Library: Analysis Library
Include file: analysis.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later