numpy.distutils.ccompiler_opt.CCompilerOpt.feature_implies#
method
- distutils.ccompiler_opt.CCompilerOpt.feature_implies(names, keep_origins=False)[source]#
Return a set of CPU features that implied by ‘names’
- Parameters
- namesstr or sequence of str
CPU feature name(s) in uppercase.
- keep_originsbool
if False(default) then the returned set will not contain any features from ‘names’. This case happens only when two features imply each other.
Examples
>>> 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'}