MCPcopy Index your code
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 an 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 @pytest.mark.filterwarnings(
1083 "ignore:.*align should be passed:numpy.exceptions.VisibleDeprecationWarning",

Callers

nothing calls this directly

Calls 1

dotMethod · 0.80

Tested by

no test coverage detected