KesMatrixCreate
Interface Definition
KesReturnCode KesMatrixCreate(KesMatrix *A, KesScalarType type, KesMatrixFormat format);
Interface Description
Creates a matrix and specifies the data type and matrix format.
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
A |
KesMatrix * |
Handle to the matrix. It cannot be a null pointer. |
Input/Output |
type |
KesScalarType |
Data type. |
Input |
format |
KesMatrixFormat |
Matrix format. |
Input |
KesMatrixFormat |
Description |
|---|---|
KES_EMPTY_MATRIX |
Empty matrix. |
KES_SHELL |
User-defined matrix-vector multiplication format. Matrix data and the corresponding MatVec are specified through related interfaces. |
KesScalarType |
Description |
Corresponding Type in C |
|---|---|---|
KES_SCALAR_FP32 |
Single-precision floating-point real type |
float |
KES_SCALAR_FP32C |
Single-precision floating-point complex type |
float _Complex |
KES_SCALAR_FP64 |
Double-precision floating-point real type |
double |
KES_SCALAR_FP64C |
Double-precision floating-point complex type |
double _Complex |