當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Python numpy CCompilerOpt.feature_untied用法及代碼示例

本文簡要介紹 python 語言中numpy.distutils.ccompiler_opt.CCompilerOpt.feature_untied的用法。

用法:

distutils.ccompiler_opt.CCompilerOpt.feature_untied(names)

與“feature_ahead()”相同,但如果兩個特征相互暗示並保持最高興趣。

參數

‘names’: sequence

大寫的 CPU 函數名稱序列。

返回

按原樣排序的 CPU 函數列表‘names’

例子

>>> self.feature_untied(["SSE2", "SSE3", "SSE41"])
["SSE2", "SSE3", "SSE41"]
# assume AVX2 and FMA3 implies each other
>>> self.feature_untied(["SSE2", "SSE3", "SSE41", "FMA3", "AVX2"])
["SSE2", "SSE3", "SSE41", "AVX2"]

相關用法


注:本文由純淨天空篩選整理自numpy.org大神的英文原創作品 numpy.distutils.ccompiler_opt.CCompilerOpt.feature_untied。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。