MCPcopy Create free account
hub / github.com/numpy/numpy / feature_can_autovec

Method feature_can_autovec

numpy/distutils/ccompiler_opt.py:1609–1621  ·  view source on GitHub ↗

check if the feature can be auto-vectorized by the compiler

(self, name)

Source from the content-addressed store, hash-verified

1607
1608 @_Cache.me
1609 def feature_can_autovec(self, name):
1610 """
1611 check if the feature can be auto-vectorized by the compiler
1612 """
1613 assert(isinstance(name, str))
1614 d = self.feature_supported[name]
1615 can = d.get("autovec", None)
1616 if can is None:
1617 valid_flags = [
1618 self.cc_test_flags([f]) for f in d.get("flags", [])
1619 ]
1620 can = valid_flags and any(valid_flags)
1621 return can
1622
1623 @_Cache.me
1624 def feature_extra_checks(self, name):

Callers 1

_parse_policy_autovecMethod · 0.80

Calls 3

cc_test_flagsMethod · 0.80
anyFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected