numpy.distutils.ccompiler_opt.CCompilerOpt.feature_sorted#

方法

distutils.ccompiler_opt.CCompilerOpt.feature_sorted(names, reverse=False)[source]#

按最低优先级对 CPU 特性列表进行排序。

参数:
‘names’: 序列

支持的 CPU 特性名称序列(大写)。

‘reverse’: 布尔型, 可选

如果为 True,则排序后的特性列表将被反转。(按最高优先级排序)

返回值:
list, 排序后的 CPU 特性列表