@@ -651,7 +651,9 @@ TEST(deserializer_vector, simplex_constrain) {
651651 double lp = 0 ;
652652 Eigen::VectorXd reference
653653 = stan::math::simplex_constrain (stan::math::to_vector (theta));
654- EXPECT_THROW ((deserializer.read_constrain_simplex <Eigen::VectorXd, false >(lp, 0 )), std::domain_error);
654+ EXPECT_THROW (
655+ (deserializer.read_constrain_simplex <Eigen::VectorXd, false >(lp, 0 )),
656+ std::domain_error);
655657 Eigen::VectorXd phi (
656658 deserializer.read_constrain_simplex <Eigen::VectorXd, false >(
657659 lp, theta.size () + 1 ));
@@ -692,7 +694,9 @@ TEST(deserializer_vector, sum_to_zero_constrain) {
692694 theta.push_back (0.0 );
693695 stan::io::deserializer<double > deserializer (theta, theta_i);
694696 double lp = 0 ;
695- EXPECT_THROW ((deserializer.read_constrain_sum_to_zero <Eigen::VectorXd, false >(lp, 0 )), std::domain_error);
697+ EXPECT_THROW (
698+ (deserializer.read_constrain_sum_to_zero <Eigen::VectorXd, false >(lp, 0 )),
699+ std::domain_error);
696700 Eigen::VectorXd reference
697701 = stan::math::sum_to_zero_constrain (stan::math::to_vector (theta));
698702 Eigen::VectorXd phi (
@@ -733,8 +737,12 @@ TEST(deserializer_matrix, sum_to_zero_constrain) {
733737 theta.push_back (0.0 );
734738 stan::io::deserializer<double > deserializer (theta, theta_i);
735739 double lp = 0.0 ;
736- EXPECT_THROW ((deserializer.read_constrain_sum_to_zero <Eigen::MatrixXd, false >(lp, 0 , 1 )), std::domain_error);
737- EXPECT_THROW ((deserializer.read_constrain_sum_to_zero <Eigen::MatrixXd, false >(lp, 1 , 0 )), std::domain_error);
740+ EXPECT_THROW ((deserializer.read_constrain_sum_to_zero <Eigen::MatrixXd, false >(
741+ lp, 0 , 1 )),
742+ std::domain_error);
743+ EXPECT_THROW ((deserializer.read_constrain_sum_to_zero <Eigen::MatrixXd, false >(
744+ lp, 1 , 0 )),
745+ std::domain_error);
738746 Eigen::MatrixXd reference
739747 = stan::math::sum_to_zero_constrain (stan::math::to_matrix (theta, 2 , 2 ));
740748 Eigen::MatrixXd phi (
@@ -886,8 +894,13 @@ TEST(deserializer_matrix, cholesky_factor_cov_constrain) {
886894 theta.push_back (-static_cast <double >(i));
887895 stan::io::deserializer<double > deserializer (theta, theta_i);
888896 double lp = 0 ;
889- EXPECT_THROW ((deserializer.read_constrain_cholesky_factor_cov <Eigen::MatrixXd, false >(lp, 0 , 1 )), std::domain_error);
890- EXPECT_NO_THROW ((deserializer.read_constrain_cholesky_factor_cov <Eigen::MatrixXd, false >(lp, 0 , 0 )));
897+ EXPECT_THROW (
898+ (deserializer.read_constrain_cholesky_factor_cov <Eigen::MatrixXd, false >(
899+ lp, 0 , 1 )),
900+ std::domain_error);
901+ EXPECT_NO_THROW (
902+ (deserializer.read_constrain_cholesky_factor_cov <Eigen::MatrixXd, false >(
903+ lp, 0 , 0 )));
891904 Eigen::MatrixXd reference = stan::math::cholesky_factor_constrain (
892905 stan::math::to_vector (theta).segment (0 , 6 ), 3 , 3 );
893906 Eigen::MatrixXd L (
@@ -970,7 +983,9 @@ TEST(deserializer_matrix, cholesky_factor_corr_constrain) {
970983 theta.push_back (-static_cast <double >(i));
971984 stan::io::deserializer<double > deserializer (theta, theta_i);
972985 double lp = 0 ;
973- EXPECT_NO_THROW ((deserializer.read_constrain_cholesky_factor_corr <Eigen::MatrixXd, false >(lp, 0 )));
986+ EXPECT_NO_THROW (
987+ (deserializer.read_constrain_cholesky_factor_corr <Eigen::MatrixXd, false >(
988+ lp, 0 )));
974989 Eigen::MatrixXd reference = stan::math::cholesky_corr_constrain (
975990 stan::math::to_vector (theta).segment (0 , 3 ), 3 );
976991 Eigen::MatrixXd L (
@@ -1017,7 +1032,8 @@ TEST(deserializer_matrix, cov_matrix_constrain) {
10171032 theta.push_back (-static_cast <double >(i));
10181033 stan::io::deserializer<double > deserializer (theta, theta_i);
10191034 double lp = 0 ;
1020- EXPECT_NO_THROW ((deserializer.read_constrain_cov_matrix <Eigen::MatrixXd, false >(lp, 0 )));
1035+ EXPECT_NO_THROW (
1036+ (deserializer.read_constrain_cov_matrix <Eigen::MatrixXd, false >(lp, 0 )));
10211037 Eigen::MatrixXd reference = stan::math::cov_matrix_constrain (
10221038 stan::math::to_vector (theta).segment (0 , 6 ), 3 );
10231039 Eigen::MatrixXd L (
@@ -1058,7 +1074,8 @@ TEST(deserializer_matrix, corr_matrix_constrain) {
10581074 theta.push_back (-static_cast <double >(i));
10591075 stan::io::deserializer<double > deserializer (theta, theta_i);
10601076 double lp = 0 ;
1061- EXPECT_NO_THROW ((deserializer.read_constrain_corr_matrix <Eigen::MatrixXd, false >(lp, 0 )));
1077+ EXPECT_NO_THROW (
1078+ (deserializer.read_constrain_corr_matrix <Eigen::MatrixXd, false >(lp, 0 )));
10621079 Eigen::MatrixXd reference = stan::math::corr_matrix_constrain (
10631080 stan::math::to_vector (theta).segment (0 , 3 ), 3 );
10641081 Eigen::MatrixXd L (
@@ -1078,7 +1095,8 @@ TEST(deserializer_matrix, corr_matrix_jacobian) {
10781095 stan::io::deserializer<double > deserializer (theta, theta_i);
10791096 double lp_ref = 0.0 ;
10801097 double lp = 0.0 ;
1081- EXPECT_NO_THROW ((deserializer.read_constrain_corr_matrix <Eigen::MatrixXd, true >(lp, 0 )));
1098+ EXPECT_NO_THROW (
1099+ (deserializer.read_constrain_corr_matrix <Eigen::MatrixXd, true >(lp, 0 )));
10821100 Eigen::MatrixXd reference = stan::math::corr_matrix_constrain (
10831101 stan::math::to_vector (theta).segment (0 , 3 ), 3 , lp_ref);
10841102 Eigen::MatrixXd L (
0 commit comments