Skip to content

Commit a3d2e44

Browse files
committed
add temp test for challenger
1 parent b366e35 commit a3d2e44

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,18 @@ def test_pyfftw_sdp_max_n():
210210
np.testing.assert_allclose(comp, ref)
211211

212212
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

Comments
 (0)