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

Method _data

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

Source from the content-addressed store, hash-verified

127 return getattr(self.npyv, "nlanes_u" + self.sfx[1:])
128
129 def _data(self, start=None, count=None, reverse=False):
130 true_mask = self._true_mask()
131 rng = range(self._nlanes())
132 if reverse:
133 rng = reversed(rng)
134 return [true_mask if x % 2 else 0 for x in rng]
135
136 def _load_b(self, data):
137 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