CheckPosDef
Advanced Analysis Library Only
AnalysisLibErrType CheckPosDef (void *inputMatrix, ssize_t matrixSize, int *positiveDefinite);
Purpose
Checks the positive definiteness of the real square input matrix. A real, square matrix is positive definite if and only if it is symmetric and the quadratic form
xTAx > 0
is true for all nonzero vectors x. For more information about positive definite matrices, refer to Matrix Computations by G.H. Golub and C.F. VanLoan, cited in the Bibliography.
Parameters
| Input | ||
| Name | Type | Description |
| inputMatrix | void * | The input matrix to test for positive definiteness. This matrix must be an array of doubles. |
| matrixSize | ssize_t | Number of elements in one dimension of the matrix. |
| Output | ||
| Name | Type | Description |
| positiveDefinite | int | indicates if inputMatrix is symmetric and positive definite.
|
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 5.0 and later