---
title: KmlSolverMatrixDestroy
description: 销毁由KmlSolverMatrixCreate函数创建的矩阵句柄。
url: "https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop240RC1/kunpengaccel_kml_16_0766.html"
---

# 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"
