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

Method test_dot_alignment_sse2

numpy/core/tests/test_regression.py:1072–1080  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1070 assert_equal(x, np.array([1], dtype=dtype))
1071
1072 def test_dot_alignment_sse2(self):
1073 # Test for ticket #551, changeset r5140
1074 x = np.zeros((30, 40))
1075 for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
1076 y = pickle.loads(pickle.dumps(x, protocol=proto))
1077 # y is now typically not aligned on a 8-byte boundary
1078 z = np.ones((1, y.shape[0]))
1079 # This shouldn't cause a segmentation fault:
1080 np.dot(z, y)
1081
1082 def test_astype_copy(self):
1083 # Ticket #788, changeset r5155

Callers

nothing calls this directly

Calls 1

dotMethod · 0.80

Tested by

no test coverage detected