• Home
  • Raw
  • Download

Lines Matching refs:qh

40     auto qh = quintic_hermite(std::move(x), std::move(y), std::move(dydx), std::move(d2ydx2));  in test_constant()  local
43 CHECK_ULP_CLOSE(Real(7), qh(t), 24); in test_constant()
44 CHECK_ULP_CLOSE(Real(0), qh.prime(t), 24); in test_constant()
45 CHECK_ULP_CLOSE(Real(0), qh.double_prime(t), 24); in test_constant()
58 auto qh = quintic_hermite(std::move(x), std::move(y), std::move(dydx), std::move(d2ydx2)); in test_linear() local
62 CHECK_ULP_CLOSE(Real(t), qh(t), 2); in test_linear()
63 CHECK_ULP_CLOSE(Real(1), qh.prime(t), 2); in test_linear()
64 CHECK_ULP_CLOSE(Real(0), qh.double_prime(t), 2); in test_linear()
82 qh = quintic_hermite(std::move(x), std::move(y), std::move(dydx), std::move(d2ydx2)); in test_linear()
86 CHECK_ULP_CLOSE(t, qh(t), 2); in test_linear()
87 CHECK_ULP_CLOSE(Real(1), qh.prime(t), 100); in test_linear()
88 … CHECK_MOLLIFIED_CLOSE(Real(0), qh.double_prime(t), 200*std::numeric_limits<Real>::epsilon()); in test_linear()
110 auto qh = quintic_hermite(std::move(x), std::move(y), std::move(dydx), std::move(d2ydx2)); in test_quadratic() local
114 CHECK_ULP_CLOSE(Real(t*t)/2, qh(t), 2); in test_quadratic()
115 CHECK_ULP_CLOSE(t, qh.prime(t), 12); in test_quadratic()
116 CHECK_ULP_CLOSE(Real(1), qh.double_prime(t), 32); in test_quadratic()
144 qh = quintic_hermite(std::move(x), std::move(y), std::move(dydx), std::move(d2ydx2)); in test_quadratic()
148 CHECK_ULP_CLOSE(Real(t*t)/2, qh(t), 4); in test_quadratic()
149 CHECK_ULP_CLOSE(t, qh.prime(t), 53); in test_quadratic()
150 CHECK_ULP_CLOSE(Real(1), qh.double_prime(t), 700); in test_quadratic()
176 auto qh = quintic_hermite(std::move(x), std::move(y), std::move(dydx), std::move(d2ydx2)); in test_cubic() local
180 CHECK_ULP_CLOSE(t*t*t, qh(t), 10); in test_cubic()
181 CHECK_ULP_CLOSE(3*t*t, qh.prime(t), 15); in test_cubic()
182 CHECK_ULP_CLOSE(6*t, qh.double_prime(t), 20); in test_cubic()
209 auto qh = quintic_hermite(std::move(x), std::move(y), std::move(dydx), std::move(d2ydx2)); in test_quartic() local
213 CHECK_ULP_CLOSE(t*t*t*t, qh(t), 100); in test_quartic()
214 CHECK_ULP_CLOSE(4*t*t*t, qh.prime(t), 100); in test_quartic()
215 CHECK_ULP_CLOSE(12*t*t, qh.double_prime(t), 100); in test_quartic()
267 auto qh = cardinal_quintic_hermite(std::move(y), std::move(dydx), std::move(d2ydx2), x0, dx); in test_cardinal_constant() local
271 CHECK_ULP_CLOSE(Real(7), qh(t), 24); in test_cardinal_constant()
272 CHECK_ULP_CLOSE(Real(0), qh.prime(t), 24); in test_cardinal_constant()
273 CHECK_ULP_CLOSE(Real(0), qh.double_prime(t), 24); in test_cardinal_constant()
293 auto [tlo, thi] = qh.domain(); in test_cardinal_constant()
298 CHECK_ULP_CLOSE(Real(7), qh(tlo), 2); in test_cardinal_constant()
299 CHECK_ULP_CLOSE(Real(7), qh(thi), 2); in test_cardinal_constant()
302 CHECK_ULP_CLOSE(Real(0), qh.prime(tlo), 2); in test_cardinal_constant()
303 CHECK_ULP_CLOSE(Real(0), qh.prime(thi), 2); in test_cardinal_constant()
322 auto qh = cardinal_quintic_hermite(std::move(y), std::move(dydx), std::move(d2ydx2), x0, dx); in test_cardinal_linear() local
325 CHECK_ULP_CLOSE(Real(t), qh(t), 2); in test_cardinal_linear()
326 CHECK_ULP_CLOSE(Real(1), qh.prime(t), 2); in test_cardinal_linear()
327 CHECK_ULP_CLOSE(Real(0), qh.double_prime(t), 2); in test_cardinal_linear()
346 auto [tlo, thi] = qh.domain(); in test_cardinal_linear()
351 CHECK_ULP_CLOSE(Real(tlo), qh(tlo), 2); in test_cardinal_linear()
352 CHECK_ULP_CLOSE(Real(thi), qh(thi), 2); in test_cardinal_linear()
355 CHECK_ULP_CLOSE(Real(1), qh.prime(tlo), 2); in test_cardinal_linear()
356 CHECK_ULP_CLOSE(Real(1), qh.prime(thi), 128); in test_cardinal_linear()
383 auto qh = cardinal_quintic_hermite(std::move(y), std::move(dydx), std::move(d2ydx2), x0, dx); in test_cardinal_quadratic() local
386 Real computed = qh(t); in test_cardinal_quadratic()
388 CHECK_ULP_CLOSE(t, qh.prime(t), 15); in test_cardinal_quadratic()
389 CHECK_ULP_CLOSE(Real(1), qh.double_prime(t), 32); in test_cardinal_quadratic()
409 auto [tlo, thi] = qh.domain(); in test_cardinal_quadratic()
414 CHECK_ULP_CLOSE(tlo*tlo/2, qh(tlo), 16); in test_cardinal_quadratic()
415 CHECK_ULP_CLOSE(thi*thi/2, qh(thi), 16); in test_cardinal_quadratic()
418 CHECK_ULP_CLOSE(tlo, qh.prime(tlo), 16); in test_cardinal_quadratic()
419 CHECK_ULP_CLOSE(thi, qh.prime(thi), 64); in test_cardinal_quadratic()
449 auto qh = cardinal_quintic_hermite(std::move(y), std::move(dydx), std::move(d2ydx2), x0, dx); in test_cardinal_cubic() local
453 Real computed = qh(t); in test_cardinal_cubic()
455 CHECK_ULP_CLOSE(3*t*t, qh.prime(t), 15); in test_cardinal_cubic()
456 CHECK_ULP_CLOSE(6*t, qh.double_prime(t), 39); in test_cardinal_cubic()
497 auto qh = cardinal_quintic_hermite(std::move(y), std::move(dydx), std::move(d2ydx2), x0, dx); in test_cardinal_quartic() local
501 CHECK_ULP_CLOSE(Real(t*t*t*t), qh(t), 250); in test_cardinal_quartic()
502 CHECK_ULP_CLOSE(4*t*t*t, qh.prime(t), 250); in test_cardinal_quartic()
503 CHECK_ULP_CLOSE(12*t*t, qh.double_prime(t), 250); in test_cardinal_quartic()