Advanced Analysis Library Only
AnalysisLibErrType LinEqs (void *inputArray, double knownVectorArray[], int arraySizes, double outputArray[]);
![]() |
Note This function is obsolete. National Instruments recommends that you use SolveEqs instead. |
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. |
/* 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);
Input | ||
Name | Type | Description |
inputArray | numeric array | Input matrix. This matrix must be an array of doubles. |
knownVectorArray | double-precision array | Known vector. |
arraySizes | integer | 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-precision array | Solution to the linear system of equations. |
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |