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

Method serialize

doc/source/reference/simd/gen_features.py:37–43  ·  view source on GitHub ↗
(self, features_names)

Source from the content-addressed store, hash-verified

35 return self.copt.cpu_baseline_names()
36
37 def serialize(self, features_names):
38 result = []
39 for f in self.copt.feature_sorted(features_names):
40 gather = self.copt.feature_supported.get(f, {}).get("group", [])
41 implies = self.copt.feature_sorted(self.copt.feature_implies(f))
42 result.append((f, implies, gather))
43 return result
44
45 def table(self, **kwargs):
46 return self.gen_table(self.serialize(self.names()), **kwargs)

Callers 2

tableMethod · 0.95
table_diffMethod · 0.95

Calls 3

feature_sortedMethod · 0.80
feature_impliesMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected