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

Function _array_vals

numpy/array_api/tests/test_array_object.py:108–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 }
107 # Recompute each time because of in-place ops
108 def _array_vals():
109 for d in _integer_dtypes:
110 yield asarray(1, dtype=d)
111 for d in _boolean_dtypes:
112 yield asarray(False, dtype=d)
113 for d in _floating_dtypes:
114 yield asarray(1.0, dtype=d)
115
116
117 BIG_INT = int(1e30)

Callers 2

test_operatorsFunction · 0.70
_matmul_array_valsFunction · 0.70

Calls 1

asarrayFunction · 0.50

Tested by

no test coverage detected