pyfmm.c_interfaces

file:

c_interfaces.py

author:

Zhu Dengda (zhudengda@mail.iggcas.ac.cn)

date:

2023-04

该文件包括 C库的调用接口

pyfmm.c_interfaces.PDOUBLE

LP_c_double 的别名

pyfmm.c_interfaces.PFLOAT

LP_c_float 的别名

pyfmm.c_interfaces.PINT

LP_c_int 的别名

pyfmm.c_interfaces.USE_FLOAT: bool = False

libfmm库中走时和慢度数组是否使用单精度浮点数

pyfmm.c_interfaces.load_c_lib(use_float: bool = False)[源代码]

加载单精度或双精度的C库,修改c_interfaces下的NPCT_REAL_TYPE变量和C函数接口

参数:

use_float – 是否使用单精度