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

Function _matmul_array_vals

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

Source from the content-addressed store, hash-verified

219 # Finally, matmul() must be tested separately, because it works a bit
220 # different from the other operations.
221 def _matmul_array_vals():
222 for a in _array_vals():
223 yield a
224 for d in _all_dtypes:
225 yield ones((3, 4), dtype=d)
226 yield ones((4, 2), dtype=d)
227 yield ones((4, 4), dtype=d)
228
229 # Scalars always error
230 for _op in ["__matmul__", "__rmatmul__", "__imatmul__"]:

Callers 1

test_operatorsFunction · 0.85

Calls 2

_array_valsFunction · 0.70
onesFunction · 0.50

Tested by

no test coverage detected