MCPcopy Index your code
hub / github.com/numpy/numpy / _data

Method _data

numpy/_core/tests/test_simd.py:134–139  ·  view source on GitHub ↗
(self, start=None, count=None, reverse=False)

Source from the content-addressed store, hash-verified

132 return getattr(self.npyv, "nlanes_u" + self.sfx[1:])
133
134 def _data(self, start=None, count=None, reverse=False):
135 true_mask = self._true_mask()
136 rng = range(self._nlanes())
137 if reverse:
138 rng = reversed(rng)
139 return [true_mask if x % 2 else 0 for x in rng]
140
141 def _load_b(self, data):
142 len_str = self.sfx[1:]

Callers 15

test_tobitsMethod · 0.95
test_packMethod · 0.95
test_operators_shiftMethod · 0.45
test_math_max_minMethod · 0.45
test_reduce_max_minMethod · 0.45
test_conversionsMethod · 0.45
test_conversionsMethod · 0.45
test_arithmetic_fusedMethod · 0.45
test_absMethod · 0.45
test_sqrtMethod · 0.45

Calls 2

_nlanesMethod · 0.95
_true_maskMethod · 0.80

Tested by

no test coverage detected