KmlIssGetErrorText
获得用户可读的最后错误描述,但该功能还未实现,返回的text为空。
接口定义
C Interface:
int KmlIssGetErrorText(KmlSolverTask **handle, char *text, int textSize);
参数
参数名  | 
类型  | 
描述  | 
输入/输出  | 
|---|---|---|---|
handle  | 
KmlSolverTask **  | 
求解器句柄,传入之前步骤的变量。  | 
输入/输出  | 
text  | 
char *  | 
存储错误文本信息。  | 
输入/输出  | 
textSize  | 
int  | 
文本大小。  | 
输入  | 
返回值
返回值  | 
类型  | 
描述  | 
|---|---|---|
NO_ERROR  | 
int  | 
正常执行。  | 
NONZERO_INDEXING  | 
int  | 
非零索引。  | 
NO_DIAGONAL_ELEMENT  | 
int  | 
无对角元素。  | 
ZERO_DIAGONAL_ELEMENT  | 
int  | 
对角线元素为零。  | 
NO_MEMORY  | 
int  | 
内存不足。  | 
BAD_HANDLE  | 
int  | 
handle错误。  | 
OUT_OF_EXECUTION_ORDER  | 
int  | 
错误的执行顺序。  | 
INCONSISTENT_PERMUTATION  | 
int  | 
不一致的排列。  | 
KML_SOLVER_INVALID_ARGUMENT  | 
int  | 
无效的参数。  | 
NOT_IMPLEMENTED  | 
int  | 
未执行。  | 
依赖
#include "kml_iss.h"
示例
C Interface:
    KmlSolverTask *handle
    int n = 8;   
    double a[26] = {1.0, 1.0, 2.0, 9.0, 2.0, 1.0, -3.0, 2.0, 3.0, 2.0, 1.0, 1.0, 9.0, -5.0, 2.0, 6.0, 1.0, -3.0, 1.0, 4.0, 1.0, -5.0, 7.0, 2.0,\
                     1.0, 2.0};
    int ja[26] = {0, 3, 4, 1, 2, 3, 5, 1, 2, 7, 0, 1, 3, 6, 0, 4, 5, 1, 4, 5, 7, 3, 6, 2, 5, 7};
    int ia[9] = {0, 3, 7, 10, 14, 17, 21, 23, 26};
    char *text;
    int textSize;  
    int ierr;
    ierr = KmlIssGcrInitDI(&handle, n, a, ja, ia);
    ierr = KmlIssGetError(&handle,text,textSize);
父主题: 函数定义(单机版)