Lines Matching refs:dydx
39 std::vector<Real> dydx(x.size(), Real(0)); in test_constant() local
42 auto dydx_copy = dydx; in test_constant()
71 for (auto & t : dydx) { in test_constant()
92 std::vector<Real> dydx{1,1,1,1}; in test_linear() local
96 auto dydx_copy = dydx; in test_linear()
109 dydx.resize(45); in test_linear()
113 dydx[i] = 1; in test_linear()
118 dydx_copy = dydx; in test_linear()
136 for (auto & t : dydx) { in test_linear()
168 std::vector<Real> dydx(x.size()); in test_quadratic() local
171 dydx[i] = x[i]; in test_quadratic()
174 auto s = cubic_hermite(std::move(x), std::move(y), std::move(dydx)); in test_quadratic()
188 std::vector<Real> dydx(n); in test_interpolation_condition() local
197 dydx[i] = dis(rd); in test_interpolation_condition()
202 auto dydx_copy = dydx; in test_interpolation_condition()
207 CHECK_ULP_CLOSE(dydx[i], s.prime(x[i]), 2); in test_interpolation_condition()
222 std::vector<Real> dydx(y.size(), Real(0)); in test_cardinal_constant() local
224 auto hermite_spline = cardinal_cubic_hermite(std::move(y), std::move(dydx), x0, dx); in test_cardinal_constant()
278 std::vector<Real> dydx{1,1,1,1}; in test_cardinal_linear() local
280 auto dydx_copy = dydx; in test_cardinal_linear()
293 dydx.resize(45); in test_cardinal_linear()
296 dydx[i] = 1; in test_cardinal_linear()
299 hermite_spline = cardinal_cubic_hermite(std::move(y), std::move(dydx), x0, dx); in test_cardinal_linear()
347 std::vector<Real> dydx(y.size()); in test_cardinal_quadratic() local
351 dydx[i] = x; in test_cardinal_quadratic()
354 auto s = cardinal_cubic_hermite(std::move(y), std::move(dydx), x0, dx); in test_cardinal_quadratic()
401 std::vector<Real> dydx(n); in test_cardinal_interpolation_condition() local
408 dydx[i] = dis(rd); in test_cardinal_interpolation_condition()
412 auto dydx_copy = dydx; in test_cardinal_interpolation_condition()
416 CHECK_ULP_CLOSE(dydx[i], s.prime(x0 + i*dx), 2); in test_cardinal_interpolation_condition()