def test_different_c(c): """Test against reference implementation for different c.""" h1, w1 = lspopt(n=1024, c_parameter=c) h2, w2 = lspopt_ref(n=1024, c_parameter=c) assert_allclose(h1, h2) assert_allclose(w1, w2)
def test_different_n(n): """Test against reference implementation for different N.""" h1, w1 = lspopt(n) h2, w2 = lspopt_ref(n) assert_allclose(h1, h2) assert_allclose(w1, w2)