Admin Production ni-theme
Current Publication

LinEqs

LabWindows/CVI

LinEqs

Advanced Analysis Library Only

AnalysisLibErrType LinEqs (void *inputArray, double knownVectorArray[], ssize_t arraySizes, double outputArray[]);

Purpose

Note Note  This function has been superseded by SolveEqs.

Solves the linear system of equations:

Ax = y

Note  The input matrix must be square and must be the same size as knownVectorArray and outputArray.

Example Code

// Find the solution to the linear system of equations.
double A[10][10], y[10], x[10];
int n;
n = 10;
.
.
.
LinEqs (A, y, n, x);

Parameters

Input
Name Type Description
inputArray void * Input matrix. This matrix must be an array of doubles.
knownVectorArray double [] The right-hand known vector.
arraySizes ssize_t The number of rows and columns in the square input matrix and the number of elements in the known vector array.
Output
Name Type Description
outputArray double [] Solution to the linear system of equations.

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: Advanced Analysis Library

Include file: analysis.h

LabWindows/CVI compatibility: LabWindows/CVI 3.1 and later