We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b366e35 commit a3d2e44Copy full SHA for a3d2e44
test.py
@@ -210,3 +210,18 @@ def test_pyfftw_sdp_max_n():
210
np.testing.assert_allclose(comp, ref)
211
212
return
213
+
214
215
+def test_oaconvolve_sdp_blocksize():
216
+ from sdp.challenger_sdp import sliding_dot_product
217
218
+ T = np.random.rand(2**10)
219
+ Q = np.random.rand(2**8)
220
+ block_size = 2**9
221
222
+ comp = sliding_dot_product(Q, T, block_size=block_size)
223
+ ref = naive_sliding_dot_product(Q, T)
224
225
+ np.testing.assert_allclose(comp, ref)
226
227
+ return
0 commit comments