Advanced Analysis Library Only
AnalysisLibErrType SpecialMatrix (int matrixType, int matrixSize, double inputArray1[], int sizeArray1, double inputArray2[], int sizeArray2, void *outputMatrix);
Generates a special type of real matrix depending on the value of matrixType. There are five possible matrix types: Identity, Diagonal, Toeplitz, Vandermonde, and Companion.
Input | ||||||||||||||||||||
Name | Type | Description | ||||||||||||||||||
matrixType | integer | Type of matrix to generate. The following table shows each matrix type and its behavior. Let n represent matrixSize, x represent inputArray1, nx represent sizeArray1, y represent inputArray2, ny represent sizeArray2, and B represent the outputMatrix.
|
||||||||||||||||||
matrixSize | integer | Number of rows and columns to generate when matrixType is Identity matrix. | ||||||||||||||||||
inputArray1 | double-precision array | Complex vector used to generate a Diagonal matrix, Toeplitz matrix, Vandermonde matrix, or Companion matrix. | ||||||||||||||||||
sizeArray1 | integer | Number of elements in vector inputArray1. | ||||||||||||||||||
inputArray2 | double-precision array | Second vector to use to generate the Toeplitz matrix. | ||||||||||||||||||
sizeArray2 | integer | Number of elements in vector inputArray2. | ||||||||||||||||||
Output | ||||||||||||||||||||
Name | Type | Description | ||||||||||||||||||
outputMatrix | numeric array | Generated matrix as an array of doubles. |
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |