KmlMgSolverPrepare
Input matrix values. Before calling this function, ensure that the input parameter matrix has been filled with valid values by using the KmlMgMatrixSetValues function.
Interface Definition
C interface:
KmlMgStatus KmlMgSolverPrepare(KmlMgSolverH solver, KmlMgMatrixH A);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
solver |
KmlMgSolverH |
Solver handle created by KmlMgSolverCreate |
Input/Output |
A |
KmlMgMatrixH |
Matrix handle created by KmlMgMatrixCreate |
Input/Output |
Return Value
Return Value |
Type |
Description |
|---|---|---|
KML_MG_OK |
int |
The execution is successful. |
KML_MG_ERR_INVALID_PARAM |
int |
The parameter is invalid. |
KML_MG_ERR_UNSUPPORTED |
int |
Unsupported feature. |
KML_MG_ERR_NO_MEMORY |
int |
Memory allocation failed. |
KML_MG_ERR_EXCEEDS_LIMIT |
int |
The parameter is out of the valid range. |
KML_MG_ERR_INCOMPATIBLE |
int |
Incompatible version. |
KML_MG_ERR_NO_REQUIRED_FIELD |
int |
Required field not set. |
KML_MG_ERR_UNKNOWN_TYPE |
int |
Unknown type. |
KML_MG_ERR_THIRD_PART |
int |
Internal third-party call error. |
KML_MG_ERR_INCONSISTENT |
int |
Inconsistent information transferred. |
KML_MG_ERR_UNEXPECTED_CALL_ORDER |
int |
Unexpected call order. |
KML_MG_ERR_MATRIX_VALUE_IS_NULL |
int |
The matrix value is null. |
KML_MG_ERR_NO_RESOURCE |
int |
Resources not ready. |