---
title: KesSolverSetOrthoProjectorType
description: "KesReturnCode KesSolverSetOrthoProjectorType(KesSolver solver, KesOrthoProjectorType type);"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2300/accel/kunpengaccel_kml_16_0751.html
sourcePath: /source/zh/kunpengboostkithistory/2300/accel/kunpengaccel_kml_16_0751.html
indexId: 4a4104d2e350d2e9f06c816955b88436a3e4848d9e94e80336c06613b5a57cd974
---
# KesSolverSetOrthoProjectorType

#### 接口定义

KesReturnCode KesSolverSetOrthoProjectorType(KesSolver solver, KesOrthoProjectorType type);


#### 接口说明

设置正交投影的算法，默认值为KES_GRAM_SCHMIDT。


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| solver | KesSolver | 求解器句柄，不能为空指针。 | 输入/输出 |
| type | KesOrthoProjectorType | 正交投影的算法。 | 输入 |


| KesOrthoProjectorType | 描述 |
| --- | --- |
| KES\_GRAM\_SCHMIDT | Block\-Gram\-Schmidt正交投影。 |
