---
title: 可替换性
description: "SCALAPACK的Fortran接口与Netlib SCALAPACK完全一致。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2300/accel/kunpengaccel_12_0065.html
sourcePath: /source/zh/kunpengboostkithistory/2300/accel/kunpengaccel_12_0065.html
indexId: 0c0df3054c6052cc7a43e91fb1de250740d9d13758de4d88a64f74481fe44fd070
---
# 可替换性

SCALAPACK的Fortran接口与Netlib SCALAPACK完全一致。

如表KML_SCALAPACK与Netlib SCALAPACK的替换映射关系所示给出SCALAPACK中可替换的接口与Netlib SCALAPACK的Fortran接口的映射关系（仅给出已优化的接口）。


**表1 KML_SCALAPACK与Netlib SCALAPACK的替换映射关系**

| Netlib接口 | KML接口 |
| --- | --- |
| psgetrf | psgetrf |
| pdgetrf | pdgetrf |
| pcgetrf | pcgetrf |
| pzgetrf | pzgetrf |
| pspotrf | pspotrf |
| pdpotrf | pdpotrf |
| pcpotrf | pcpotrf |
| pzpotrf | pzpotrf |
| psgeqrf | psgeqrf |
| pdgeqrf | pdgeqrf |
| pcgeqrf | pcgeqrf |
| pzgeqrf | pzgeqrf |
| psgels | psgels |
| pdgels | pdgels |
| pcgels | pcgels |
| pzgels | pzgels |


以上接口均为Fortran接口，在C语言中使用时需在接口名称后增加下划线，且参数类型均为指针类型。请参见《鲲鹏数学库 开发指南(https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2300/accel/kunpengaccel_kml_16_0398.html)》中“KML_SCALAPACK函数定义”章节。
