本文简要介绍 python 语言中numpy.distutils.ccompiler_opt.CCompilerOpt.feature_ahead
的用法。
用法:
distutils.ccompiler_opt.CCompilerOpt.feature_ahead(names)
删除任何隐含特征并保留原点后,返回‘names’ 中的特征列表。
- ‘names’: sequence:
大写的 CPU 函数名称序列。
- 按原样排序的 CPU 函数列表‘names’
参数:
返回:
例子:
>>> self.feature_ahead(["SSE2", "SSE3", "SSE41"]) ["SSE41"] # assume AVX2 and FMA3 implies each other and AVX2 # is the highest interest >>> self.feature_ahead(["SSE2", "SSE3", "SSE41", "AVX2", "FMA3"]) ["AVX2"] # assume AVX2 and FMA3 don't implies each other >>> self.feature_ahead(["SSE2", "SSE3", "SSE41", "AVX2", "FMA3"]) ["AVX2", "FMA3"]
相关用法
- Python numpy CCompilerOpt.feature_c_preprocessor用法及代码示例
- Python numpy CCompilerOpt.feature_untied用法及代码示例
- Python numpy CCompilerOpt.feature_implies用法及代码示例
- 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_ahead。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。