---
title: KmlSolverMatrixDestroy
description: "销毁由KmlSolverMatrixCreate函数创建的矩阵句柄。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/240RC1/accel/kunpengaccel_kml_16_0766.html
sourcePath: /source/zh/kunpengboostkithistory/240RC1/accel/kunpengaccel_kml_16_0766.html
indexId: 646b637c4e9adf5f97986987e8d911be8156c6027f8102ce0b95f81f35f5438876
---
# KmlSolverMatrixDestroy

销毁由KmlSolverMatrixCreate函数创建的矩阵句柄。

#### 接口定义

C Interface：

int KmlSolverMatrixDestroy(KmlSolverMatrix **pMatrix);


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| pMatrix | KmlSolverMatrix \*\* | 由KmlSolverMatrixCreate函数创建的矩阵句柄。 | 输入/输出 |


#### 返回值

| 返回值 | 类型 | 描述 |
| --- | --- | --- |
| KMLSS\_NO\_ERROR | int | 正常执行。 |
| KMLSS\_INTERNAL\_ERROR | int | 内部错误。 |
| KMLSS\_NULL\_ARGUMENT | int | pMatrix为空参数。 |


#### 依赖

#include "kml_solver.h"
