@@ -382,7 +382,8 @@ class deserializer {
382382 template <typename Ret, bool Jacobian, typename LB, typename LP,
383383 typename ... Sizes>
384384 inline auto read_constrain_lb (const LB& lb, LP& lp, Sizes... sizes) {
385- return stan::math::lb_constrain<Jacobian>(this ->read <Ret>(sizes...), lb, lp);
385+ return stan::math::lb_constrain<Jacobian>(this ->read <Ret>(sizes...), lb,
386+ lp);
386387 }
387388
388389 /* *
@@ -404,7 +405,8 @@ class deserializer {
404405 template <typename Ret, bool Jacobian, typename UB, typename LP,
405406 typename ... Sizes>
406407 inline auto read_constrain_ub (const UB& ub, LP& lp, Sizes... sizes) {
407- return stan::math::ub_constrain<Jacobian>(this ->read <Ret>(sizes...), ub, lp);
408+ return stan::math::ub_constrain<Jacobian>(this ->read <Ret>(sizes...), ub,
409+ lp);
408410 }
409411
410412 /* *
@@ -429,8 +431,9 @@ class deserializer {
429431 typename ... Sizes>
430432 inline auto read_constrain_lub (const LB& lb, const UB& ub, LP& lp,
431433 Sizes... sizes) {
432- return stan::math::lub_constrain<Jacobian>(this ->read <Ret>(sizes...), lb, ub, lp);
433- }
434+ return stan::math::lub_constrain<Jacobian>(this ->read <Ret>(sizes...), lb,
435+ ub, lp);
436+ }
434437
435438 /* *
436439 * Return the next object transformed to have the specified offset and
@@ -458,8 +461,8 @@ class deserializer {
458461 inline auto read_constrain_offset_multiplier (const Offset& offset,
459462 const Mult& multiplier, LP& lp,
460463 Sizes... sizes) {
461- return stan::math::offset_multiplier_constrain<Jacobian>(this -> read <Ret>(sizes...), offset,
462- multiplier, lp);
464+ return stan::math::offset_multiplier_constrain<Jacobian>(
465+ this -> read <Ret>(sizes...), offset, multiplier, lp);
463466 }
464467
465468 /* *
@@ -483,7 +486,8 @@ class deserializer {
483486 template <typename Ret, bool Jacobian, typename LP, typename ... Sizes,
484487 require_not_std_vector_t <Ret>* = nullptr >
485488 inline auto read_constrain_unit_vector (LP& lp, Sizes... sizes) {
486- return stan::math::eval (stan::math::unit_vector_constrain<Jacobian>(this ->read <Ret>(sizes...), lp));
489+ return stan::math::eval (stan::math::unit_vector_constrain<Jacobian>(
490+ this ->read <Ret>(sizes...), lp));
487491 }
488492
489493 /* *
@@ -540,7 +544,8 @@ class deserializer {
540544 require_not_std_vector_t <Ret>* = nullptr >
541545 inline auto read_constrain_simplex (LP& lp, size_t size) {
542546 stan::math::check_positive (" read_simplex" , " size" , size);
543- return stan::math::simplex_constrain<Jacobian>(this ->read <Ret>(size - 1 ), lp);
547+ return stan::math::simplex_constrain<Jacobian>(this ->read <Ret>(size - 1 ),
548+ lp);
544549 }
545550
546551 /* *
@@ -596,7 +601,8 @@ class deserializer {
596601 template <typename Ret, bool Jacobian, typename LP, typename ... Sizes,
597602 require_not_std_vector_t <Ret>* = nullptr >
598603 inline auto read_constrain_ordered (LP& lp, Sizes... sizes) {
599- return stan::math::ordered_constrain<Jacobian>(this ->read <Ret>(sizes...), lp);
604+ return stan::math::ordered_constrain<Jacobian>(this ->read <Ret>(sizes...),
605+ lp);
600606 }
601607
602608 /* *
@@ -651,7 +657,8 @@ class deserializer {
651657 template <typename Ret, bool Jacobian, typename LP, typename ... Sizes,
652658 require_not_std_vector_t <Ret>* = nullptr >
653659 inline auto read_constrain_positive_ordered (LP& lp, Sizes... sizes) {
654- return stan::math::positive_ordered_constrain<Jacobian>(this ->read <Ret>(sizes...), lp);
660+ return stan::math::positive_ordered_constrain<Jacobian>(
661+ this ->read <Ret>(sizes...), lp);
655662 }
656663
657664 /* *
@@ -707,10 +714,10 @@ class deserializer {
707714 require_matrix_t <Ret>* = nullptr >
708715 inline auto read_constrain_cholesky_factor_cov (LP& lp, Eigen::Index M,
709716 Eigen::Index N) {
710- return stan::math::cholesky_factor_constrain<Jacobian>(
711- this ->read <conditional_var_val_t <Ret, vector_t >>((N * (N + 1 )) / 2
712- + (M - N) * N),
713- M, N, lp);
717+ return stan::math::cholesky_factor_constrain<Jacobian>(
718+ this ->read <conditional_var_val_t <Ret, vector_t >>((N * (N + 1 )) / 2
719+ + (M - N) * N),
720+ M, N, lp);
714721 }
715722
716723 /* *
@@ -766,9 +773,9 @@ class deserializer {
766773 template <typename Ret, bool Jacobian, typename LP,
767774 require_matrix_t <Ret>* = nullptr >
768775 inline auto read_constrain_cholesky_factor_corr (LP& lp, Eigen::Index K) {
769- return stan::math::cholesky_corr_constrain<Jacobian>(
770- this ->read <conditional_var_val_t <Ret, vector_t >>((K * (K - 1 )) / 2 ),
771- K, lp);
776+ return stan::math::cholesky_corr_constrain<Jacobian>(
777+ this ->read <conditional_var_val_t <Ret, vector_t >>((K * (K - 1 )) / 2 ), K ,
778+ lp);
772779 }
773780
774781 /* *
@@ -823,10 +830,9 @@ class deserializer {
823830 template <typename Ret, bool Jacobian, typename LP,
824831 require_matrix_t <Ret>* = nullptr >
825832 inline auto read_constrain_cov_matrix (LP& lp, Eigen::Index k) {
826- return stan::math::cov_matrix_constrain<Jacobian>(
827- this ->read <conditional_var_val_t <Ret, vector_t >>(k
828- + (k * (k - 1 )) / 2 ),
829- k, lp);
833+ return stan::math::cov_matrix_constrain<Jacobian>(
834+ this ->read <conditional_var_val_t <Ret, vector_t >>(k + (k * (k - 1 )) / 2 ),
835+ k, lp);
830836 }
831837
832838 /* *
@@ -879,9 +885,9 @@ class deserializer {
879885 require_not_std_vector_t <Ret>* = nullptr ,
880886 require_matrix_t <Ret>* = nullptr >
881887 inline auto read_constrain_corr_matrix (LP& lp, Eigen::Index k) {
882- return stan::math::corr_matrix_constrain<Jacobian>(
883- this ->read <conditional_var_val_t <Ret, vector_t >>((k * (k - 1 )) / 2 ),
884- k, lp);
888+ return stan::math::corr_matrix_constrain<Jacobian>(
889+ this ->read <conditional_var_val_t <Ret, vector_t >>((k * (k - 1 )) / 2 ), k ,
890+ lp);
885891 }
886892
887893 /* *
@@ -915,7 +921,8 @@ class deserializer {
915921 }
916922
917923 /* *
918- * Return the next object transformed to a matrix with simplexes along the columns
924+ * Return the next object transformed to a matrix with simplexes along the
925+ * columns
919926 *
920927 * <p>See <code>stan::math::stochastic_column_constrain(T,T&)</code>.
921928 *
@@ -931,13 +938,15 @@ class deserializer {
931938 template <typename Ret, bool Jacobian, typename LP,
932939 require_not_std_vector_t <Ret>* = nullptr ,
933940 require_matrix_t <Ret>* = nullptr >
934- inline auto read_constrain_stochastic_column (LP& lp, Eigen::Index rows, Eigen::Index cols) {
935- return stan::math::stochastic_column_constrain<Jacobian>(
936- this ->read <conditional_var_val_t <Ret, matrix_t >>(rows - 1 , cols), lp);
941+ inline auto read_constrain_stochastic_column (LP& lp, Eigen::Index rows,
942+ Eigen::Index cols) {
943+ return stan::math::stochastic_column_constrain<Jacobian>(
944+ this ->read <conditional_var_val_t <Ret, matrix_t >>(rows - 1 , cols), lp);
937945 }
938946
939947 /* *
940- * Specialization of \ref read_constrain_stochastic_column for `std::vector` return types.
948+ * Specialization of \ref read_constrain_stochastic_column for `std::vector`
949+ * return types.
941950 *
942951 * <p>See <code>stan::math::stochastic_column_constrain(T,T&)</code>.
943952 *
@@ -950,12 +959,13 @@ class deserializer {
950959 * probability to increment.
951960 * @param vecsize The size of the return vector.
952961 * @param sizes Pack of integrals to use to construct the return's type.
953- * @return Standard vector of matrices transformed to have simplixes along the columns.
962+ * @return Standard vector of matrices transformed to have simplixes along the
963+ * columns.
954964 */
955965 template <typename Ret, bool Jacobian, typename LP, typename ... Sizes,
956966 require_std_vector_t <Ret>* = nullptr >
957967 inline auto read_constrain_stochastic_column (LP& lp, const size_t vecsize,
958- Sizes... sizes) {
968+ Sizes... sizes) {
959969 std::decay_t <Ret> ret;
960970 ret.reserve (vecsize);
961971 for (size_t i = 0 ; i < vecsize; ++i) {
@@ -967,7 +977,8 @@ class deserializer {
967977 }
968978
969979 /* *
970- * Return the next object transformed to a matrix with simplexes along the rows
980+ * Return the next object transformed to a matrix with simplexes along the
981+ * rows
971982 *
972983 * <p>See <code>stan::math::stochastic_row_constrain(T,T&)</code>.
973984 *
@@ -983,13 +994,15 @@ class deserializer {
983994 template <typename Ret, bool Jacobian, typename LP,
984995 require_not_std_vector_t <Ret>* = nullptr ,
985996 require_matrix_t <Ret>* = nullptr >
986- inline auto read_constrain_stochastic_row (LP& lp, Eigen::Index rows, Eigen::Index cols) {
987- return stan::math::stochastic_row_constrain<Jacobian>(
988- this ->read <conditional_var_val_t <Ret, matrix_t >>(rows, cols - 1 ), lp);
997+ inline auto read_constrain_stochastic_row (LP& lp, Eigen::Index rows,
998+ Eigen::Index cols) {
999+ return stan::math::stochastic_row_constrain<Jacobian>(
1000+ this ->read <conditional_var_val_t <Ret, matrix_t >>(rows, cols - 1 ), lp);
9891001 }
9901002
9911003 /* *
992- * Specialization of \ref read_constrain_stochastic_row for `std::vector` return types.
1004+ * Specialization of \ref read_constrain_stochastic_row for `std::vector`
1005+ * return types.
9931006 *
9941007 * <p>See <code>stan::math::stochastic_row_constrain(T,T&)</code>.
9951008 *
@@ -1002,12 +1015,13 @@ class deserializer {
10021015 * probability to increment.
10031016 * @param vecsize The size of the return vector.
10041017 * @param sizes Pack of integrals to use to construct the return's type.
1005- * @return Standard vector of matrices transformed to have simplixes along the columns.
1018+ * @return Standard vector of matrices transformed to have simplixes along the
1019+ * columns.
10061020 */
10071021 template <typename Ret, bool Jacobian, typename LP, typename ... Sizes,
10081022 require_std_vector_t <Ret>* = nullptr >
10091023 inline auto read_constrain_stochastic_row (LP& lp, const size_t vecsize,
1010- Sizes... sizes) {
1024+ Sizes... sizes) {
10111025 std::decay_t <Ret> ret;
10121026 ret.reserve (vecsize);
10131027 for (size_t i = 0 ; i < vecsize; ++i) {
@@ -1018,7 +1032,6 @@ class deserializer {
10181032 return ret;
10191033 }
10201034
1021-
10221035 /* *
10231036 * Read a serialized lower bounded variable and unconstrain it
10241037 *
@@ -1368,7 +1381,8 @@ class deserializer {
13681381 std::decay_t <Ret> ret;
13691382 ret.reserve (vecsize);
13701383 for (size_t i = 0 ; i < vecsize; ++i) {
1371- ret.emplace_back (read_free_stochastic_column<value_type_t <Ret>>(sizes...));
1384+ ret.emplace_back (
1385+ read_free_stochastic_column<value_type_t <Ret>>(sizes...));
13721386 }
13731387 return ret;
13741388 }
@@ -1405,7 +1419,6 @@ class deserializer {
14051419 }
14061420 return ret;
14071421 }
1408-
14091422};
14101423
14111424} // namespace io
0 commit comments