---
title: KesMatrixSetDim
description: KesReturnCode KesMatrixSetDim(KesMatrix A, int nRows, int nCols);
url: "https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop240RC1/kunpengaccel_kml_16_0733.html"
---

# KesMatrixSetDim

#### 接口定义

KesReturnCode KesMatrixSetDim(KesMatrix A, int nRows, int nCols);


#### 接口说明

设置矩阵全局维度。


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| A | KesMatrix | 矩阵句柄，不能为空指针。 | 输入/输出 |
| nRows | int | 矩阵全局行数。 | 输入 |
| nCols | int | 矩阵全局列数。 | 输入 |
