Lines Matching refs:dlp
39 auto dlp = discrete_legendre<Real>(1, Real(0)); in test_dlp_norms() local
40 BOOST_CHECK_CLOSE_FRACTION(dlp.norm_sq(0), 3, tol); in test_dlp_norms()
41 BOOST_CHECK_CLOSE_FRACTION(dlp.norm_sq(1), 2, tol); in test_dlp_norms()
42 dlp = discrete_legendre<Real>(2, Real(0)); in test_dlp_norms()
43 BOOST_CHECK_CLOSE_FRACTION(dlp.norm_sq(0), Real(5)/Real(2), tol); in test_dlp_norms()
44 BOOST_CHECK_CLOSE_FRACTION(dlp.norm_sq(1), Real(5)/Real(4), tol); in test_dlp_norms()
45 BOOST_CHECK_CLOSE_FRACTION(dlp.norm_sq(2), Real(3*3*7)/Real(pow(2,6)), 2*tol); in test_dlp_norms()
46 dlp = discrete_legendre<Real>(200, Real(0)); in test_dlp_norms()
49 Real calc = dlp.norm_sq(r); in test_dlp_norms()
64 auto dlp = discrete_legendre<Real>(n, x); in test_dlp_evaluation() local
65 Real q0 = dlp(x, 0); in test_dlp_evaluation()
67 Real q1 = dlp(x, 1); in test_dlp_evaluation()
69 Real q2 = dlp(x, 2); in test_dlp_evaluation()
73 Real q3 = dlp(x, 3); in test_dlp_evaluation()
80 dlp = discrete_legendre<Real>(n, x); in test_dlp_evaluation()
85 Real q1 = dlp(x, r); in test_dlp_evaluation()
86 Real q2 = -dlp(-x, r); in test_dlp_evaluation()
91 Real q1 = dlp(x, r); in test_dlp_evaluation()
92 Real q2 = dlp(-x, r); in test_dlp_evaluation()
100 Real term = dlp(y, r); in test_dlp_evaluation()
104 Real l2_sq_expected = dlp.norm_sq(r); in test_dlp_evaluation()
120 auto dlp = discrete_legendre<Real>(n, x); in test_dlp_next() local
123 BOOST_CHECK_CLOSE(dlp.next(), dlp(x, k), tol); in test_dlp_next()
126 dlp = discrete_legendre<Real>(n, x); in test_dlp_next()
129 BOOST_CHECK_CLOSE(dlp.next_prime(), dlp.prime(x, k), tol); in test_dlp_next()
143 auto dlp = discrete_legendre<Real>(n, x); in test_dlp_derivatives() local
144 Real q0p = dlp.prime(x, 0); in test_dlp_derivatives()
146 Real q1p = dlp.prime(x, 1); in test_dlp_derivatives()
148 Real q2p = dlp.prime(x, 2); in test_dlp_derivatives()
159 auto dlp = discrete_legendre<Real>(n, x); in test_dlp_second_derivative() local
160 Real q2pp = dlp.next_dbl_prime(); in test_dlp_second_derivative()