@@ -501,9 +501,9 @@ void expect_ad_helper(const ad_tolerances& tols, const F& f, const G& g,
501501 */
502502template <typename F, typename T>
503503void expect_ad_v (const ad_tolerances& tols, const F& f, const T& x) {
504- using stan::math::to_deserializer;
505- using stan::math::serialize_return;
506504 using stan::math::serialize_args;
505+ using stan::math::serialize_return;
506+ using stan::math::to_deserializer;
507507 auto g = [&](const auto & v) {
508508 auto ds = to_deserializer (v);
509509 auto xds = ds.read (x);
@@ -565,9 +565,9 @@ void expect_ad_v(const ad_tolerances& tols, const F& f, int x) {
565565template <typename F, typename T1, typename T2>
566566void expect_ad_vv (const ad_tolerances& tols, const F& f, const T1& x1,
567567 const T2& x2) {
568- using stan::math::to_deserializer;
569- using stan::math::serialize_return;
570568 using stan::math::serialize_args;
569+ using stan::math::serialize_return;
570+ using stan::math::to_deserializer;
571571 // d.x1
572572 auto g1 = [&](const auto & v) {
573573 auto ds = to_deserializer (v);
@@ -680,9 +680,9 @@ void expect_ad_vv(const ad_tolerances& tols, const F& f, int x1, int x2) {
680680template <typename F, typename T1, typename T2, typename T3>
681681void expect_ad_vvv (const ad_tolerances& tols, const F& f, const T1& x1,
682682 const T2& x2, const T3& x3) {
683- using stan::math::to_deserializer;
684- using stan::math::serialize_return;
685683 using stan::math::serialize_args;
684+ using stan::math::serialize_return;
685+ using stan::math::to_deserializer;
686686 // d.x1
687687 auto g1 = [&](const auto & v) {
688688 auto ds = to_deserializer (v);
0 commit comments