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

Method test_matmul

numpy/lib/tests/test_mixins.py:195–203  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

193 _assert_equal_type_and_value(expected, actual, err_msg=err_msg)
194
195 def test_matmul(self):
196 array = np.array([1, 2], dtype=np.float64)
197 array_like = ArrayLike(array)
198 expected = ArrayLike(np.float64(5))
199 _assert_equal_type_and_value(expected, np.matmul(array_like, array))
200 _assert_equal_type_and_value(
201 expected, operator.matmul(array_like, array))
202 _assert_equal_type_and_value(
203 expected, operator.matmul(array, array_like))
204
205 def test_ufunc_at(self):
206 array = ArrayLike(np.array([1, 2, 3, 4]))

Callers

nothing calls this directly

Calls 2

ArrayLikeClass · 0.70

Tested by

no test coverage detected