Admin Production ni-theme
Current Publication

Neg1D

LabWindows/CVI

Neg1D

AnalysisLibErrType Neg1D (double inputArray[], ssize_t numberOfElements, double outputArray[]);

Purpose

Negates the elements of the input array.

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

The following example uses the Neg1D function.

double inputArray[10], negatedArray[10];
AnalysisLibErrType status;

// Generate an array of random numbers
status = Uniform (10, 17, inputArray);

status = Neg1D(inputArray, 10, negatedArray);

Parameters

Input
Name Type Description
inputArray double [] The input array whose values are negated and stored in the output array.
numberOfElements ssize_t Number of elements to negate.
Output
Name Type Description
outputArray double [] Negated 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