本文簡要介紹 python 語言中numpy.distutils.ccompiler_opt.CCompilerOpt.feature_implies
的用法。
用法:
distutils.ccompiler_opt.CCompilerOpt.feature_implies(names, keep_origins=False)
返回 ‘names’ 暗示的一組 CPU 函數
- names: str or sequence of str:
大寫的 CPU 函數名稱。
- keep_origins: bool:
如果為 False(默認),則返回的集合將不包含來自 ‘names’ 的任何特征。隻有當兩個特征相互暗示時才會發生這種情況。
參數:
例子:
>>> self.feature_implies("SSE3") {'SSE', 'SSE2'} >>> self.feature_implies("SSE2") {'SSE'} >>> self.feature_implies("SSE2", keep_origins=True) # 'SSE2' found here since 'SSE' and 'SSE2' imply each other {'SSE', 'SSE2'}
相關用法
- Python numpy CCompilerOpt.feature_c_preprocessor用法及代碼示例
- Python numpy CCompilerOpt.feature_untied用法及代碼示例
- Python numpy CCompilerOpt.feature_ahead用法及代碼示例
- Python numpy CCompilerOpt.cc_normalize_flags用法及代碼示例
- Python numpy Chebyshev.mapparms用法及代碼示例
- Python numpy RandomState.standard_exponential用法及代碼示例
- Python numpy hamming用法及代碼示例
- Python numpy legendre.legint用法及代碼示例
- Python numpy chararray.ndim用法及代碼示例
- Python numpy chebyshev.chebsub用法及代碼示例
- Python numpy chararray.nbytes用法及代碼示例
- Python numpy ma.indices用法及代碼示例
- Python numpy matrix.A1用法及代碼示例
- Python numpy MaskedArray.var用法及代碼示例
- Python numpy ma.zeros用法及代碼示例
- Python numpy broadcast用法及代碼示例
- Python numpy matrix.T用法及代碼示例
- Python numpy matrix.I用法及代碼示例
- Python numpy MaskedArray.T用法及代碼示例
- Python numpy hermite.hermfromroots用法及代碼示例
- Python numpy hermite_e.hermediv用法及代碼示例
- Python numpy recarray.dot用法及代碼示例
- Python numpy random.mtrand.RandomState.wald用法及代碼示例
- Python numpy trim_zeros用法及代碼示例
- Python numpy chebyshev.chebdiv用法及代碼示例
注:本文由純淨天空篩選整理自numpy.org大神的英文原創作品 numpy.distutils.ccompiler_opt.CCompilerOpt.feature_implies。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。