From 83a36b15f0645af8d5c2284e699fb73937a414d4 Mon Sep 17 00:00:00 2001 From: Rok Cesnovar Date: Mon, 3 Aug 2020 13:27:38 +0200 Subject: [PATCH 1/6] remove using std::pow --- src/stan_math_backend/Stan_math_code_gen.ml | 1 - test/integration/good/code-gen/cl.expected | 1 - test/integration/good/code-gen/cpp.expected | 17 ------------- .../good/compiler-optimizations/cpp.expected | 25 ------------------- 4 files changed, 44 deletions(-) diff --git a/src/stan_math_backend/Stan_math_code_gen.ml b/src/stan_math_backend/Stan_math_code_gen.ml index 6e6f4c4336..b66e5339fc 100644 --- a/src/stan_math_backend/Stan_math_code_gen.ml +++ b/src/stan_math_backend/Stan_math_code_gen.ml @@ -711,7 +711,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; diff --git a/test/integration/good/code-gen/cl.expected b/test/integration/good/code-gen/cl.expected index 92d35aca87..a3a3836dfe 100644 --- a/test/integration/good/code-gen/cl.expected +++ b/test/integration/good/code-gen/cl.expected @@ -41,7 +41,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; diff --git a/test/integration/good/code-gen/cpp.expected b/test/integration/good/code-gen/cpp.expected index 966bc6857a..193aa26089 100644 --- a/test/integration/good/code-gen/cpp.expected +++ b/test/integration/good/code-gen/cpp.expected @@ -41,7 +41,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -552,7 +551,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -896,7 +894,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -1408,7 +1405,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -9460,7 +9456,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -11431,7 +11426,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -15884,7 +15878,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -16711,7 +16704,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -18376,7 +18368,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -18988,7 +18979,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -21719,7 +21709,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -25985,7 +25974,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -26482,7 +26470,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -26868,7 +26855,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -30577,7 +30563,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -31063,7 +31048,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -31434,7 +31418,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; diff --git a/test/integration/good/compiler-optimizations/cpp.expected b/test/integration/good/compiler-optimizations/cpp.expected index 62080fdb7d..739cce71bd 100644 --- a/test/integration/good/compiler-optimizations/cpp.expected +++ b/test/integration/good/compiler-optimizations/cpp.expected @@ -41,7 +41,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -907,7 +906,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -3520,7 +3518,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -5163,7 +5160,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -5526,7 +5522,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -5885,7 +5880,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -6520,7 +6514,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -7022,7 +7015,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -8586,7 +8578,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -9507,7 +9498,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -12025,7 +12015,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -16286,7 +16275,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -17794,7 +17782,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -18629,7 +18616,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -21242,7 +21228,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -25380,7 +25365,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -25736,7 +25720,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -26098,7 +26081,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -26506,7 +26488,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -28873,7 +28854,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -29924,7 +29904,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -30918,7 +30897,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -32400,7 +32378,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -33241,7 +33218,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -34443,7 +34419,6 @@ using std::istream; using std::string; using std::stringstream; using std::vector; -using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; From eb78aa9e2b393b234b6ac05dddb93809314e0cdd Mon Sep 17 00:00:00 2001 From: Rok Cesnovar Date: Mon, 3 Aug 2020 21:52:27 +0200 Subject: [PATCH 2/6] fix container utilites and add back std::pow, add stan::math::pow --- src/middle/Stan_math_signatures.ml | 10 +- src/stan_math_backend/Stan_math_code_gen.ml | 4 +- test/integration/good/code-gen/cl.expected | 4 +- test/integration/good/code-gen/cpp.expected | 68 +++++++++--- .../good/compiler-optimizations/cpp.expected | 100 +++++++++++++----- .../container_construction_utilities.stan | 36 ------- .../math/matrix/pretty.expected | 34 ------ 7 files changed, 137 insertions(+), 119 deletions(-) diff --git a/src/middle/Stan_math_signatures.ml b/src/middle/Stan_math_signatures.ml index a53b620929..fa424e91b6 100644 --- a/src/middle/Stan_math_signatures.ml +++ b/src/middle/Stan_math_signatures.ml @@ -1079,11 +1079,11 @@ let () = add_unqualified ("is_nan", ReturnType UInt, [UReal]) ; add_binary "lbeta" ; add_binary "lchoose" ; - add_unqualified - ("linspaced_array", ReturnType (UArray UReal), [UInt; UReal; UReal]) ; - add_unqualified - ("linspaced_row_vector", ReturnType URowVector, [UInt; UReal; UReal]) ; - add_unqualified ("linspaced_vector", ReturnType UVector, [UInt; UReal; UReal]) ; + add_qualified + ("linspaced_array", ReturnType (UArray UReal), [(DataOnly, UInt); (DataOnly, UReal); (DataOnly, UReal)]) ; + add_qualified + ("linspaced_row_vector", ReturnType URowVector, [(DataOnly,UInt); (DataOnly,UReal); (DataOnly,UReal)]) ; + add_qualified ("linspaced_vector", ReturnType UVector, [(DataOnly,UInt); (DataOnly,UReal); (DataOnly,UReal)]) ; add_unqualified ("lkj_corr_cholesky_log", ReturnType UReal, [UMatrix; UReal]) ; add_unqualified ("lkj_corr_cholesky_lpdf", ReturnType UReal, [UMatrix; UReal]) ; add_unqualified ("lkj_corr_cholesky_rng", ReturnType UMatrix, [UInt; UReal]) ; diff --git a/src/stan_math_backend/Stan_math_code_gen.ml b/src/stan_math_backend/Stan_math_code_gen.ml index b66e5339fc..39b17399f0 100644 --- a/src/stan_math_backend/Stan_math_code_gen.ml +++ b/src/stan_math_backend/Stan_math_code_gen.ml @@ -711,6 +711,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -723,7 +724,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; |} +using namespace stan::math; +using stan::math::pow; |} (** Functions needed in the model class not defined yet in stan math. FIXME: Move these to the Stan repo when these repos are joined. diff --git a/test/integration/good/code-gen/cl.expected b/test/integration/good/code-gen/cl.expected index a3a3836dfe..f9ac4cc9cb 100644 --- a/test/integration/good/code-gen/cl.expected +++ b/test/integration/good/code-gen/cl.expected @@ -41,6 +41,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -53,7 +54,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", diff --git a/test/integration/good/code-gen/cpp.expected b/test/integration/good/code-gen/cpp.expected index 193aa26089..d2c94cdaca 100644 --- a/test/integration/good/code-gen/cpp.expected +++ b/test/integration/good/code-gen/cpp.expected @@ -41,6 +41,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -53,7 +54,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -551,6 +553,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -563,7 +566,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -894,6 +898,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -906,7 +911,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -1405,6 +1411,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -1417,7 +1424,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -9456,6 +9464,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -9468,7 +9477,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -11426,6 +11436,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -11438,7 +11449,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -15878,6 +15890,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -15890,7 +15903,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -16704,6 +16718,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -16716,7 +16731,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -18368,6 +18384,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -18380,7 +18397,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -18979,6 +18997,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -18991,7 +19010,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -21709,6 +21729,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -21721,7 +21742,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -25974,6 +25996,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -25986,7 +26009,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -26470,6 +26494,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -26482,7 +26507,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -26855,6 +26881,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -26867,7 +26894,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -30563,6 +30591,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -30575,7 +30604,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -31048,6 +31078,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -31060,7 +31091,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -31418,6 +31450,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -31430,7 +31463,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", diff --git a/test/integration/good/compiler-optimizations/cpp.expected b/test/integration/good/compiler-optimizations/cpp.expected index 739cce71bd..ea719dc031 100644 --- a/test/integration/good/compiler-optimizations/cpp.expected +++ b/test/integration/good/compiler-optimizations/cpp.expected @@ -41,6 +41,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -53,7 +54,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -906,6 +908,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -918,7 +921,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -3518,6 +3522,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -3530,7 +3535,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -5160,6 +5166,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -5172,7 +5179,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -5522,6 +5530,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -5534,7 +5543,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -5880,6 +5890,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -5892,7 +5903,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -6514,6 +6526,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -6526,7 +6539,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -7015,6 +7029,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -7027,7 +7042,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -8578,6 +8594,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -8590,7 +8607,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -9498,6 +9516,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -9510,7 +9529,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -12015,6 +12035,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -12027,7 +12048,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -16275,6 +16297,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -16287,7 +16310,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -17782,6 +17806,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -17794,7 +17819,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -18616,6 +18642,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -18628,7 +18655,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -21228,6 +21256,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -21240,7 +21269,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -25365,6 +25395,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -25377,7 +25408,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -25720,6 +25752,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -25732,7 +25765,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -26081,6 +26115,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -26093,7 +26128,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -26488,6 +26524,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -26500,7 +26537,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -28854,6 +28892,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -28866,7 +28905,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -29904,6 +29944,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -29916,7 +29957,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -30897,6 +30939,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -30909,7 +30952,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -32378,6 +32422,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -32390,7 +32435,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -33218,6 +33264,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -33230,7 +33277,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", @@ -34419,6 +34467,7 @@ using std::istream; using std::string; using std::stringstream; using std::vector; +using std::pow; using stan::io::dump; using stan::math::lgamma; using stan::model::model_base_crtp; @@ -34431,7 +34480,8 @@ using stan::model::index_min_max; using stan::model::index_multi; using stan::model::index_omni; using stan::model::nil_index_list; -using namespace stan::math; +using namespace stan::math; +using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", diff --git a/test/integration/good/function-signatures/math/matrix/container_construction_utilities.stan b/test/integration/good/function-signatures/math/matrix/container_construction_utilities.stan index 1ca92f9a74..f31381fba1 100644 --- a/test/integration/good/function-signatures/math/matrix/container_construction_utilities.stan +++ b/test/integration/good/function-signatures/math/matrix/container_construction_utilities.stan @@ -38,44 +38,8 @@ transformed data { transformed_data_vector = zeros_vector(d_int); } parameters { - real p_real; real y_p; } -transformed parameters { - matrix[d_int,d_int] transformed_parameters_matrix; - real transformed_parameters_real_array[d_int]; - row_vector[d_int] transformed_parameters_row_vector; - vector[d_int] transformed_parameters_vector; - - transformed_parameters_matrix = identity_matrix(d_int); - - transformed_parameters_real_array = linspaced_array(d_int, d_real, d_real); - transformed_parameters_real_array = linspaced_array(d_int, p_real, d_real); - transformed_parameters_real_array = linspaced_array(d_int, d_real, p_real); - transformed_parameters_real_array = linspaced_array(d_int, p_real, p_real); - transformed_parameters_row_vector = linspaced_row_vector(d_int, d_real, d_real); - transformed_parameters_row_vector = linspaced_row_vector(d_int, p_real, d_real); - transformed_parameters_row_vector = linspaced_row_vector(d_int, d_real, p_real); - transformed_parameters_row_vector = linspaced_row_vector(d_int, p_real, p_real); - transformed_parameters_vector = linspaced_vector(d_int, d_real, d_real); - transformed_parameters_vector = linspaced_vector(d_int, p_real, d_real); - transformed_parameters_vector = linspaced_vector(d_int, d_real, p_real); - transformed_parameters_vector = linspaced_vector(d_int, p_real, p_real); - - transformed_parameters_real_array = one_hot_array(d_int, d_int); - transformed_parameters_row_vector = one_hot_row_vector(d_int, d_int); - transformed_parameters_vector = one_hot_vector(d_int, d_int); - - transformed_parameters_real_array = ones_array(d_int); - transformed_parameters_row_vector = ones_row_vector(d_int); - transformed_parameters_vector = ones_vector(d_int); - - transformed_parameters_vector = uniform_simplex(d_int); - - transformed_parameters_real_array = zeros_array(d_int); - transformed_parameters_row_vector = zeros_row_vector(d_int); - transformed_parameters_vector = zeros_vector(d_int); -} model { y_p ~ normal(0,1); } diff --git a/test/integration/good/function-signatures/math/matrix/pretty.expected b/test/integration/good/function-signatures/math/matrix/pretty.expected index 7bad94380c..cde8e2e06f 100644 --- a/test/integration/good/function-signatures/math/matrix/pretty.expected +++ b/test/integration/good/function-signatures/math/matrix/pretty.expected @@ -1920,42 +1920,8 @@ transformed data { transformed_data_vector = zeros_vector(d_int); } parameters { - real p_real; real y_p; } -transformed parameters { - matrix[d_int, d_int] transformed_parameters_matrix; - real transformed_parameters_real_array[d_int]; - row_vector[d_int] transformed_parameters_row_vector; - vector[d_int] transformed_parameters_vector; - transformed_parameters_matrix = identity_matrix(d_int); - transformed_parameters_real_array = linspaced_array(d_int, d_real, d_real); - transformed_parameters_real_array = linspaced_array(d_int, p_real, d_real); - transformed_parameters_real_array = linspaced_array(d_int, d_real, p_real); - transformed_parameters_real_array = linspaced_array(d_int, p_real, p_real); - transformed_parameters_row_vector = linspaced_row_vector(d_int, d_real, - d_real); - transformed_parameters_row_vector = linspaced_row_vector(d_int, p_real, - d_real); - transformed_parameters_row_vector = linspaced_row_vector(d_int, d_real, - p_real); - transformed_parameters_row_vector = linspaced_row_vector(d_int, p_real, - p_real); - transformed_parameters_vector = linspaced_vector(d_int, d_real, d_real); - transformed_parameters_vector = linspaced_vector(d_int, p_real, d_real); - transformed_parameters_vector = linspaced_vector(d_int, d_real, p_real); - transformed_parameters_vector = linspaced_vector(d_int, p_real, p_real); - transformed_parameters_real_array = one_hot_array(d_int, d_int); - transformed_parameters_row_vector = one_hot_row_vector(d_int, d_int); - transformed_parameters_vector = one_hot_vector(d_int, d_int); - transformed_parameters_real_array = ones_array(d_int); - transformed_parameters_row_vector = ones_row_vector(d_int); - transformed_parameters_vector = ones_vector(d_int); - transformed_parameters_vector = uniform_simplex(d_int); - transformed_parameters_real_array = zeros_array(d_int); - transformed_parameters_row_vector = zeros_row_vector(d_int); - transformed_parameters_vector = zeros_vector(d_int); -} model { y_p ~ normal(0, 1); } From d12b107866038c5c7a6374935fbdb35b36ed6a5e Mon Sep 17 00:00:00 2001 From: Rok Cesnovar Date: Tue, 4 Aug 2020 09:11:18 +0200 Subject: [PATCH 3/6] format --- src/middle/Stan_math_signatures.ml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/middle/Stan_math_signatures.ml b/src/middle/Stan_math_signatures.ml index fa424e91b6..61f7ba98a5 100644 --- a/src/middle/Stan_math_signatures.ml +++ b/src/middle/Stan_math_signatures.ml @@ -1080,10 +1080,17 @@ let () = add_binary "lbeta" ; add_binary "lchoose" ; add_qualified - ("linspaced_array", ReturnType (UArray UReal), [(DataOnly, UInt); (DataOnly, UReal); (DataOnly, UReal)]) ; + ( "linspaced_array" + , ReturnType (UArray UReal) + , [(DataOnly, UInt); (DataOnly, UReal); (DataOnly, UReal)] ) ; add_qualified - ("linspaced_row_vector", ReturnType URowVector, [(DataOnly,UInt); (DataOnly,UReal); (DataOnly,UReal)]) ; - add_qualified ("linspaced_vector", ReturnType UVector, [(DataOnly,UInt); (DataOnly,UReal); (DataOnly,UReal)]) ; + ( "linspaced_row_vector" + , ReturnType URowVector + , [(DataOnly, UInt); (DataOnly, UReal); (DataOnly, UReal)] ) ; + add_qualified + ( "linspaced_vector" + , ReturnType UVector + , [(DataOnly, UInt); (DataOnly, UReal); (DataOnly, UReal)] ) ; add_unqualified ("lkj_corr_cholesky_log", ReturnType UReal, [UMatrix; UReal]) ; add_unqualified ("lkj_corr_cholesky_lpdf", ReturnType UReal, [UMatrix; UReal]) ; add_unqualified ("lkj_corr_cholesky_rng", ReturnType UMatrix, [UInt; UReal]) ; From c21e0d31df3e6d8375ba135037f1fd8391928f93 Mon Sep 17 00:00:00 2001 From: Rok Cesnovar Date: Tue, 4 Aug 2020 16:03:14 +0200 Subject: [PATCH 4/6] a fix for #662 --- src/stan_math_backend/Expression_gen.ml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/stan_math_backend/Expression_gen.ml b/src/stan_math_backend/Expression_gen.ml index 2df3636568..548ee4ebc5 100644 --- a/src/stan_math_backend/Expression_gen.ml +++ b/src/stan_math_backend/Expression_gen.ml @@ -358,11 +358,16 @@ and pp_user_defined_fun ppf (f, es) = and pp_compiler_internal_fn ut f ppf es = let pp_array_literal ppf es = let pp_add_method ppf () = pf ppf ")@,.add(" in - pf ppf "stan::math::array_builder<%a>()@,.add(%a)@,.array()" - pp_unsizedtype_local - (promote_adtype es, promote_unsizedtype es) - (list ~sep:pp_add_method pp_expr) - es + if List.length es = 0 then + pf ppf "stan::math::array_builder<%a>()@,.add(0)@,.array()" + pp_unsizedtype_local + (promote_adtype es, promote_unsizedtype es) + else + pf ppf "stan::math::array_builder<%a>()@,.add(%a)@,.array()" + pp_unsizedtype_local + (promote_adtype es, promote_unsizedtype es) + (list ~sep:pp_add_method pp_expr) + es in match Internal_fun.of_string_opt f with | Some FnMakeArray -> pp_array_literal ppf es From efc08b99a7ac28090dc6edc398fcfef7a1d214a5 Mon Sep 17 00:00:00 2001 From: Rok Cesnovar Date: Fri, 7 Aug 2020 15:22:15 +0200 Subject: [PATCH 5/6] expression gen fix for scalar eltpow --- src/stan_math_backend/Expression_gen.ml | 2 +- test/integration/good/code-gen/cpp.expected | 2519 +++++++++++++----- test/integration/good/code-gen/mir.expected | 2637 +++++++++++++++++-- test/integration/good/code-gen/mother.stan | 145 + 4 files changed, 4524 insertions(+), 779 deletions(-) diff --git a/src/stan_math_backend/Expression_gen.ml b/src/stan_math_backend/Expression_gen.ml index 548ee4ebc5..0c6dea3cae 100644 --- a/src/stan_math_backend/Expression_gen.ml +++ b/src/stan_math_backend/Expression_gen.ml @@ -220,7 +220,7 @@ and gen_operator_app = function pp_scalar_binary ppf "(%a@ /@ %a)" "elt_divide(@,%a,@ %a)" es | Pow -> fun ppf es -> pp_binary_f ppf "pow" es | EltPow -> - fun ppf es -> pp_scalar_binary ppf "(%a@ *@ %a)" "pow(@,%a,@ %a)" es + fun ppf es -> pp_binary_f ppf "pow" es | Equals -> fun ppf es -> pp_binary_f ppf "logical_eq" es | NEquals -> fun ppf es -> pp_binary_f ppf "logical_neq" es | Less -> fun ppf es -> pp_binary_f ppf "logical_lt" es diff --git a/test/integration/good/code-gen/cpp.expected b/test/integration/good/code-gen/cpp.expected index d2c94cdaca..f866e6c3af 100644 --- a/test/integration/good/code-gen/cpp.expected +++ b/test/integration/good/code-gen/cpp.expected @@ -1429,186 +1429,186 @@ using stan::math::pow; static int current_statement__ = 0; static const std::vector locations_array__ = {" (found before start of program)", - " (in 'mother.stan', line 401, column 2 to column 14)", - " (in 'mother.stan', line 402, column 2 to column 52)", - " (in 'mother.stan', line 403, column 2 to column 45)", - " (in 'mother.stan', line 404, column 2 to column 41)", - " (in 'mother.stan', line 405, column 2 to column 32)", - " (in 'mother.stan', line 406, column 2 to column 36)", - " (in 'mother.stan', line 407, column 2 to column 27)", - " (in 'mother.stan', line 408, column 2 to column 24)", - " (in 'mother.stan', line 409, column 2 to column 28)", - " (in 'mother.stan', line 410, column 2 to column 26)", - " (in 'mother.stan', line 411, column 2 to column 32)", - " (in 'mother.stan', line 412, column 2 to column 36)", - " (in 'mother.stan', line 413, column 2 to column 45)", - " (in 'mother.stan', line 414, column 2 to column 23)", - " (in 'mother.stan', line 415, column 2 to column 29)", - " (in 'mother.stan', line 416, column 2 to column 33)", - " (in 'mother.stan', line 417, column 2 to column 38)", - " (in 'mother.stan', line 418, column 2 to column 36)", - " (in 'mother.stan', line 419, column 2 to column 42)", - " (in 'mother.stan', line 420, column 2 to column 16)", - " (in 'mother.stan', line 421, column 2 to column 16)", - " (in 'mother.stan', line 424, column 2 to column 33)", - " (in 'mother.stan', line 425, column 2 to column 37)", - " (in 'mother.stan', line 426, column 2 to column 28)", - " (in 'mother.stan', line 427, column 2 to column 25)", - " (in 'mother.stan', line 428, column 2 to column 29)", - " (in 'mother.stan', line 429, column 2 to column 27)", - " (in 'mother.stan', line 430, column 2 to column 33)", - " (in 'mother.stan', line 431, column 2 to column 37)", - " (in 'mother.stan', line 432, column 2 to column 46)", - " (in 'mother.stan', line 433, column 2 to column 24)", - " (in 'mother.stan', line 434, column 2 to column 30)", - " (in 'mother.stan', line 435, column 2 to column 34)", - " (in 'mother.stan', line 436, column 2 to column 39)", - " (in 'mother.stan', line 437, column 2 to column 37)", - " (in 'mother.stan', line 438, column 2 to column 43)", - " (in 'mother.stan', line 439, column 2 to column 20)", - " (in 'mother.stan', line 441, column 2 to column 31)", - " (in 'mother.stan', line 442, column 2 to column 31)", - " (in 'mother.stan', line 443, column 2 to column 23)", - " (in 'mother.stan', line 444, column 2 to column 23)", - " (in 'mother.stan', line 446, column 2 to column 25)", - " (in 'mother.stan', line 447, column 2 to column 31)", - " (in 'mother.stan', line 448, column 2 to column 31)", - " (in 'mother.stan', line 450, column 2 to column 27)", - " (in 'mother.stan', line 451, column 2 to column 27)", - " (in 'mother.stan', line 452, column 2 to column 33)", - " (in 'mother.stan', line 458, column 10 to column 38)", - " (in 'mother.stan', line 457, column 23 to line 458, column 39)", - " (in 'mother.stan', line 457, column 8 to line 458, column 39)", - " (in 'mother.stan', line 456, column 21 to line 458, column 40)", - " (in 'mother.stan', line 456, column 6 to line 458, column 40)", - " (in 'mother.stan', line 455, column 19 to line 458, column 41)", - " (in 'mother.stan', line 455, column 4 to line 458, column 41)", - " (in 'mother.stan', line 454, column 17 to line 458, column 42)", - " (in 'mother.stan', line 454, column 2 to line 458, column 42)", - " (in 'mother.stan', line 460, column 17 to column 45)", - " (in 'mother.stan', line 460, column 2 to column 45)", - " (in 'mother.stan', line 461, column 2 to column 29)", - " (in 'mother.stan', line 462, column 2 to column 31)", - " (in 'mother.stan', line 463, column 2 to column 31)", - " (in 'mother.stan', line 465, column 2 to column 63)", - " (in 'mother.stan', line 466, column 2 to column 79)", - " (in 'mother.stan', line 467, column 2 to column 81)", - " (in 'mother.stan', line 468, column 2 to column 65)", - " (in 'mother.stan', line 469, column 2 to column 81)", - " (in 'mother.stan', line 470, column 2 to column 67)", - " (in 'mother.stan', line 471, column 2 to column 83)", - " (in 'mother.stan', line 515, column 2 to column 32)", - " (in 'mother.stan', line 516, column 2 to column 27)", - " (in 'mother.stan', line 517, column 2 to column 35)", - " (in 'mother.stan', line 518, column 2 to column 39)", - " (in 'mother.stan', line 519, column 2 to column 28)", - " (in 'mother.stan', line 520, column 2 to column 25)", - " (in 'mother.stan', line 521, column 2 to column 29)", - " (in 'mother.stan', line 522, column 2 to column 27)", - " (in 'mother.stan', line 523, column 2 to column 33)", - " (in 'mother.stan', line 524, column 2 to column 37)", - " (in 'mother.stan', line 525, column 2 to column 46)", - " (in 'mother.stan', line 526, column 2 to column 24)", - " (in 'mother.stan', line 527, column 2 to column 30)", - " (in 'mother.stan', line 528, column 2 to column 34)", - " (in 'mother.stan', line 529, column 2 to column 39)", - " (in 'mother.stan', line 530, column 2 to column 37)", - " (in 'mother.stan', line 531, column 2 to column 43)", - " (in 'mother.stan', line 532, column 2 to column 29)", - " (in 'mother.stan', line 533, column 2 to column 31)", - " (in 'mother.stan', line 534, column 2 to column 27)", - " (in 'mother.stan', line 535, column 2 to column 27)", - " (in 'mother.stan', line 536, column 2 to column 27)", - " (in 'mother.stan', line 537, column 2 to column 28)", - " (in 'mother.stan', line 538, column 2 to column 28)", - " (in 'mother.stan', line 539, column 2 to column 28)", - " (in 'mother.stan', line 540, column 2 to column 28)", - " (in 'mother.stan', line 541, column 2 to column 24)", - " (in 'mother.stan', line 543, column 2 to column 35)", - " (in 'mother.stan', line 544, column 2 to column 31)", - " (in 'mother.stan', line 545, column 2 to column 23)", - " (in 'mother.stan', line 546, column 2 to column 23)", - " (in 'mother.stan', line 547, column 2 to column 25)", - " (in 'mother.stan', line 548, column 2 to column 31)", - " (in 'mother.stan', line 549, column 2 to column 31)", - " (in 'mother.stan', line 551, column 2 to column 35)", - " (in 'mother.stan', line 552, column 2 to column 31)", - " (in 'mother.stan', line 553, column 2 to column 31)", - " (in 'mother.stan', line 555, column 2 to column 27)", - " (in 'mother.stan', line 556, column 2 to column 27)", - " (in 'mother.stan', line 557, column 2 to column 33)", - " (in 'mother.stan', line 563, column 10 to column 38)", - " (in 'mother.stan', line 562, column 23 to line 563, column 39)", - " (in 'mother.stan', line 562, column 8 to line 563, column 39)", - " (in 'mother.stan', line 561, column 21 to line 563, column 40)", - " (in 'mother.stan', line 561, column 6 to line 563, column 40)", - " (in 'mother.stan', line 560, column 19 to line 563, column 41)", - " (in 'mother.stan', line 560, column 4 to line 563, column 41)", - " (in 'mother.stan', line 559, column 17 to line 563, column 42)", - " (in 'mother.stan', line 559, column 2 to line 563, column 42)", - " (in 'mother.stan', line 565, column 17 to column 45)", - " (in 'mother.stan', line 565, column 2 to column 45)", - " (in 'mother.stan', line 571, column 8 to column 49)", - " (in 'mother.stan', line 570, column 6 to line 571, column 49)", - " (in 'mother.stan', line 569, column 4 to line 571, column 49)", - " (in 'mother.stan', line 568, column 2 to line 571, column 49)", - " (in 'mother.stan', line 576, column 6 to column 60)", - " (in 'mother.stan', line 575, column 4 to line 576, column 60)", - " (in 'mother.stan', line 574, column 2 to line 576, column 60)", - " (in 'mother.stan', line 578, column 2 to column 45)", - " (in 'mother.stan', line 579, column 64 to column 97)", - " (in 'mother.stan', line 579, column 2 to column 97)", - " (in 'mother.stan', line 584, column 6 to column 51)", - " (in 'mother.stan', line 583, column 4 to line 584, column 51)", - " (in 'mother.stan', line 582, column 2 to line 584, column 51)", - " (in 'mother.stan', line 585, column 2 to column 39)", - " (in 'mother.stan', line 587, column 58 to column 91)", - " (in 'mother.stan', line 587, column 2 to column 91)", - " (in 'mother.stan', line 593, column 8 to column 68)", - " (in 'mother.stan', line 592, column 6 to line 593, column 68)", - " (in 'mother.stan', line 591, column 4 to line 593, column 68)", - " (in 'mother.stan', line 590, column 2 to line 593, column 68)", - " (in 'mother.stan', line 594, column 2 to column 48)", - " (in 'mother.stan', line 595, column 67 to column 100)", - " (in 'mother.stan', line 595, column 2 to column 100)", - " (in 'mother.stan', line 597, column 2 to column 36)", - " (in 'mother.stan', line 598, column 2 to column 38)", - " (in 'mother.stan', line 474, column 2 to column 16)", - " (in 'mother.stan', line 475, column 2 to column 20)", - " (in 'mother.stan', line 476, column 2 to column 29)", - " (in 'mother.stan', line 477, column 2 to column 24)", - " (in 'mother.stan', line 478, column 2 to column 23)", - " (in 'mother.stan', line 479, column 2 to column 35)", - " (in 'mother.stan', line 481, column 2 to column 38)", - " (in 'mother.stan', line 482, column 2 to column 38)", - " (in 'mother.stan', line 484, column 2 to column 41)", - " (in 'mother.stan', line 486, column 4 to column 42)", - " (in 'mother.stan', line 487, column 4 to column 46)", - " (in 'mother.stan', line 488, column 4 to column 46)", - " (in 'mother.stan', line 491, column 8 to column 68)", - " (in 'mother.stan', line 492, column 8 to column 76)", - " (in 'mother.stan', line 493, column 8 to column 76)", - " (in 'mother.stan', line 494, column 8 to column 65)", - " (in 'mother.stan', line 490, column 21 to line 495, column 7)", - " (in 'mother.stan', line 490, column 6 to line 495, column 7)", - " (in 'mother.stan', line 489, column 19 to line 496, column 5)", - " (in 'mother.stan', line 489, column 4 to line 496, column 5)", - " (in 'mother.stan', line 485, column 17 to line 497, column 3)", - " (in 'mother.stan', line 485, column 2 to line 497, column 3)", - " (in 'mother.stan', line 500, column 6 to column 47)", - " (in 'mother.stan', line 499, column 19 to line 501, column 5)", - " (in 'mother.stan', line 499, column 4 to line 501, column 5)", - " (in 'mother.stan', line 498, column 17 to line 502, column 3)", - " (in 'mother.stan', line 498, column 2 to line 502, column 3)", - " (in 'mother.stan', line 504, column 4 to column 47)", - " (in 'mother.stan', line 503, column 17 to line 505, column 3)", - " (in 'mother.stan', line 503, column 2 to line 505, column 3)", - " (in 'mother.stan', line 506, column 2 to column 38)", - " (in 'mother.stan', line 507, column 2 to column 38)", - " (in 'mother.stan', line 508, column 2 to column 38)", - " (in 'mother.stan', line 509, column 2 to column 39)", - " (in 'mother.stan', line 510, column 2 to column 39)", - " (in 'mother.stan', line 512, column 2 to column 53)", + " (in 'mother.stan', line 546, column 2 to column 14)", + " (in 'mother.stan', line 547, column 2 to column 52)", + " (in 'mother.stan', line 548, column 2 to column 45)", + " (in 'mother.stan', line 549, column 2 to column 41)", + " (in 'mother.stan', line 550, column 2 to column 32)", + " (in 'mother.stan', line 551, column 2 to column 36)", + " (in 'mother.stan', line 552, column 2 to column 27)", + " (in 'mother.stan', line 553, column 2 to column 24)", + " (in 'mother.stan', line 554, column 2 to column 28)", + " (in 'mother.stan', line 555, column 2 to column 26)", + " (in 'mother.stan', line 556, column 2 to column 32)", + " (in 'mother.stan', line 557, column 2 to column 36)", + " (in 'mother.stan', line 558, column 2 to column 45)", + " (in 'mother.stan', line 559, column 2 to column 23)", + " (in 'mother.stan', line 560, column 2 to column 29)", + " (in 'mother.stan', line 561, column 2 to column 33)", + " (in 'mother.stan', line 562, column 2 to column 38)", + " (in 'mother.stan', line 563, column 2 to column 36)", + " (in 'mother.stan', line 564, column 2 to column 42)", + " (in 'mother.stan', line 565, column 2 to column 16)", + " (in 'mother.stan', line 566, column 2 to column 16)", + " (in 'mother.stan', line 569, column 2 to column 33)", + " (in 'mother.stan', line 570, column 2 to column 37)", + " (in 'mother.stan', line 571, column 2 to column 28)", + " (in 'mother.stan', line 572, column 2 to column 25)", + " (in 'mother.stan', line 573, column 2 to column 29)", + " (in 'mother.stan', line 574, column 2 to column 27)", + " (in 'mother.stan', line 575, column 2 to column 33)", + " (in 'mother.stan', line 576, column 2 to column 37)", + " (in 'mother.stan', line 577, column 2 to column 46)", + " (in 'mother.stan', line 578, column 2 to column 24)", + " (in 'mother.stan', line 579, column 2 to column 30)", + " (in 'mother.stan', line 580, column 2 to column 34)", + " (in 'mother.stan', line 581, column 2 to column 39)", + " (in 'mother.stan', line 582, column 2 to column 37)", + " (in 'mother.stan', line 583, column 2 to column 43)", + " (in 'mother.stan', line 584, column 2 to column 20)", + " (in 'mother.stan', line 586, column 2 to column 31)", + " (in 'mother.stan', line 587, column 2 to column 31)", + " (in 'mother.stan', line 588, column 2 to column 23)", + " (in 'mother.stan', line 589, column 2 to column 23)", + " (in 'mother.stan', line 591, column 2 to column 25)", + " (in 'mother.stan', line 592, column 2 to column 31)", + " (in 'mother.stan', line 593, column 2 to column 31)", + " (in 'mother.stan', line 595, column 2 to column 27)", + " (in 'mother.stan', line 596, column 2 to column 27)", + " (in 'mother.stan', line 597, column 2 to column 33)", + " (in 'mother.stan', line 603, column 10 to column 38)", + " (in 'mother.stan', line 602, column 23 to line 603, column 39)", + " (in 'mother.stan', line 602, column 8 to line 603, column 39)", + " (in 'mother.stan', line 601, column 21 to line 603, column 40)", + " (in 'mother.stan', line 601, column 6 to line 603, column 40)", + " (in 'mother.stan', line 600, column 19 to line 603, column 41)", + " (in 'mother.stan', line 600, column 4 to line 603, column 41)", + " (in 'mother.stan', line 599, column 17 to line 603, column 42)", + " (in 'mother.stan', line 599, column 2 to line 603, column 42)", + " (in 'mother.stan', line 605, column 17 to column 45)", + " (in 'mother.stan', line 605, column 2 to column 45)", + " (in 'mother.stan', line 606, column 2 to column 29)", + " (in 'mother.stan', line 607, column 2 to column 31)", + " (in 'mother.stan', line 608, column 2 to column 31)", + " (in 'mother.stan', line 610, column 2 to column 63)", + " (in 'mother.stan', line 611, column 2 to column 79)", + " (in 'mother.stan', line 612, column 2 to column 81)", + " (in 'mother.stan', line 613, column 2 to column 65)", + " (in 'mother.stan', line 614, column 2 to column 81)", + " (in 'mother.stan', line 615, column 2 to column 67)", + " (in 'mother.stan', line 616, column 2 to column 83)", + " (in 'mother.stan', line 660, column 2 to column 32)", + " (in 'mother.stan', line 661, column 2 to column 27)", + " (in 'mother.stan', line 662, column 2 to column 35)", + " (in 'mother.stan', line 663, column 2 to column 39)", + " (in 'mother.stan', line 664, column 2 to column 28)", + " (in 'mother.stan', line 665, column 2 to column 25)", + " (in 'mother.stan', line 666, column 2 to column 29)", + " (in 'mother.stan', line 667, column 2 to column 27)", + " (in 'mother.stan', line 668, column 2 to column 33)", + " (in 'mother.stan', line 669, column 2 to column 37)", + " (in 'mother.stan', line 670, column 2 to column 46)", + " (in 'mother.stan', line 671, column 2 to column 24)", + " (in 'mother.stan', line 672, column 2 to column 30)", + " (in 'mother.stan', line 673, column 2 to column 34)", + " (in 'mother.stan', line 674, column 2 to column 39)", + " (in 'mother.stan', line 675, column 2 to column 37)", + " (in 'mother.stan', line 676, column 2 to column 43)", + " (in 'mother.stan', line 677, column 2 to column 29)", + " (in 'mother.stan', line 678, column 2 to column 31)", + " (in 'mother.stan', line 679, column 2 to column 27)", + " (in 'mother.stan', line 680, column 2 to column 27)", + " (in 'mother.stan', line 681, column 2 to column 27)", + " (in 'mother.stan', line 682, column 2 to column 28)", + " (in 'mother.stan', line 683, column 2 to column 28)", + " (in 'mother.stan', line 684, column 2 to column 28)", + " (in 'mother.stan', line 685, column 2 to column 28)", + " (in 'mother.stan', line 686, column 2 to column 24)", + " (in 'mother.stan', line 688, column 2 to column 35)", + " (in 'mother.stan', line 689, column 2 to column 31)", + " (in 'mother.stan', line 690, column 2 to column 23)", + " (in 'mother.stan', line 691, column 2 to column 23)", + " (in 'mother.stan', line 692, column 2 to column 25)", + " (in 'mother.stan', line 693, column 2 to column 31)", + " (in 'mother.stan', line 694, column 2 to column 31)", + " (in 'mother.stan', line 696, column 2 to column 35)", + " (in 'mother.stan', line 697, column 2 to column 31)", + " (in 'mother.stan', line 698, column 2 to column 31)", + " (in 'mother.stan', line 700, column 2 to column 27)", + " (in 'mother.stan', line 701, column 2 to column 27)", + " (in 'mother.stan', line 702, column 2 to column 33)", + " (in 'mother.stan', line 708, column 10 to column 38)", + " (in 'mother.stan', line 707, column 23 to line 708, column 39)", + " (in 'mother.stan', line 707, column 8 to line 708, column 39)", + " (in 'mother.stan', line 706, column 21 to line 708, column 40)", + " (in 'mother.stan', line 706, column 6 to line 708, column 40)", + " (in 'mother.stan', line 705, column 19 to line 708, column 41)", + " (in 'mother.stan', line 705, column 4 to line 708, column 41)", + " (in 'mother.stan', line 704, column 17 to line 708, column 42)", + " (in 'mother.stan', line 704, column 2 to line 708, column 42)", + " (in 'mother.stan', line 710, column 17 to column 45)", + " (in 'mother.stan', line 710, column 2 to column 45)", + " (in 'mother.stan', line 716, column 8 to column 49)", + " (in 'mother.stan', line 715, column 6 to line 716, column 49)", + " (in 'mother.stan', line 714, column 4 to line 716, column 49)", + " (in 'mother.stan', line 713, column 2 to line 716, column 49)", + " (in 'mother.stan', line 721, column 6 to column 60)", + " (in 'mother.stan', line 720, column 4 to line 721, column 60)", + " (in 'mother.stan', line 719, column 2 to line 721, column 60)", + " (in 'mother.stan', line 723, column 2 to column 45)", + " (in 'mother.stan', line 724, column 64 to column 97)", + " (in 'mother.stan', line 724, column 2 to column 97)", + " (in 'mother.stan', line 729, column 6 to column 51)", + " (in 'mother.stan', line 728, column 4 to line 729, column 51)", + " (in 'mother.stan', line 727, column 2 to line 729, column 51)", + " (in 'mother.stan', line 730, column 2 to column 39)", + " (in 'mother.stan', line 732, column 58 to column 91)", + " (in 'mother.stan', line 732, column 2 to column 91)", + " (in 'mother.stan', line 738, column 8 to column 68)", + " (in 'mother.stan', line 737, column 6 to line 738, column 68)", + " (in 'mother.stan', line 736, column 4 to line 738, column 68)", + " (in 'mother.stan', line 735, column 2 to line 738, column 68)", + " (in 'mother.stan', line 739, column 2 to column 48)", + " (in 'mother.stan', line 740, column 67 to column 100)", + " (in 'mother.stan', line 740, column 2 to column 100)", + " (in 'mother.stan', line 742, column 2 to column 36)", + " (in 'mother.stan', line 743, column 2 to column 38)", + " (in 'mother.stan', line 619, column 2 to column 16)", + " (in 'mother.stan', line 620, column 2 to column 20)", + " (in 'mother.stan', line 621, column 2 to column 29)", + " (in 'mother.stan', line 622, column 2 to column 24)", + " (in 'mother.stan', line 623, column 2 to column 23)", + " (in 'mother.stan', line 624, column 2 to column 35)", + " (in 'mother.stan', line 626, column 2 to column 38)", + " (in 'mother.stan', line 627, column 2 to column 38)", + " (in 'mother.stan', line 629, column 2 to column 41)", + " (in 'mother.stan', line 631, column 4 to column 42)", + " (in 'mother.stan', line 632, column 4 to column 46)", + " (in 'mother.stan', line 633, column 4 to column 46)", + " (in 'mother.stan', line 636, column 8 to column 68)", + " (in 'mother.stan', line 637, column 8 to column 76)", + " (in 'mother.stan', line 638, column 8 to column 76)", + " (in 'mother.stan', line 639, column 8 to column 65)", + " (in 'mother.stan', line 635, column 21 to line 640, column 7)", + " (in 'mother.stan', line 635, column 6 to line 640, column 7)", + " (in 'mother.stan', line 634, column 19 to line 641, column 5)", + " (in 'mother.stan', line 634, column 4 to line 641, column 5)", + " (in 'mother.stan', line 630, column 17 to line 642, column 3)", + " (in 'mother.stan', line 630, column 2 to line 642, column 3)", + " (in 'mother.stan', line 645, column 6 to column 47)", + " (in 'mother.stan', line 644, column 19 to line 646, column 5)", + " (in 'mother.stan', line 644, column 4 to line 646, column 5)", + " (in 'mother.stan', line 643, column 17 to line 647, column 3)", + " (in 'mother.stan', line 643, column 2 to line 647, column 3)", + " (in 'mother.stan', line 649, column 4 to column 47)", + " (in 'mother.stan', line 648, column 17 to line 650, column 3)", + " (in 'mother.stan', line 648, column 2 to line 650, column 3)", + " (in 'mother.stan', line 651, column 2 to column 38)", + " (in 'mother.stan', line 652, column 2 to column 38)", + " (in 'mother.stan', line 653, column 2 to column 38)", + " (in 'mother.stan', line 654, column 2 to column 39)", + " (in 'mother.stan', line 655, column 2 to column 39)", + " (in 'mother.stan', line 657, column 2 to column 53)", " (in 'mother.stan', line 316, column 2 to column 17)", " (in 'mother.stan', line 317, column 2 to column 17)", " (in 'mother.stan', line 318, column 2 to column 28)", @@ -1660,159 +1660,348 @@ static const std::vector locations_array__ = {" (found before start of p " (in 'mother.stan', line 335, column 2 to column 36)", " (in 'mother.stan', line 336, column 39 to column 40)", " (in 'mother.stan', line 336, column 2 to column 42)", - " (in 'mother.stan', line 339, column 2 to column 13)", - " (in 'mother.stan', line 340, column 12 to column 13)", - " (in 'mother.stan', line 340, column 2 to column 15)", - " (in 'mother.stan', line 341, column 13 to column 14)", - " (in 'mother.stan', line 341, column 2 to column 34)", - " (in 'mother.stan', line 342, column 2 to column 15)", - " (in 'mother.stan', line 343, column 2 to column 20)", - " (in 'mother.stan', line 344, column 2 to column 29)", - " (in 'mother.stan', line 345, column 2 to column 46)", - " (in 'mother.stan', line 346, column 10 to column 11)", - " (in 'mother.stan', line 346, column 2 to column 24)", - " (in 'mother.stan', line 347, column 27 to column 28)", - " (in 'mother.stan', line 347, column 10 to column 11)", - " (in 'mother.stan', line 347, column 2 to column 30)", - " (in 'mother.stan', line 348, column 27 to column 28)", - " (in 'mother.stan', line 348, column 29 to column 30)", - " (in 'mother.stan', line 348, column 31 to column 32)", - " (in 'mother.stan', line 348, column 10 to column 11)", - " (in 'mother.stan', line 348, column 2 to column 34)", - " (in 'mother.stan', line 349, column 2 to column 39)", - " (in 'mother.stan', line 350, column 2 to column 37)", - " (in 'mother.stan', line 351, column 2 to column 14)", - " (in 'mother.stan', line 352, column 2 to column 14)", - " (in 'mother.stan', line 353, column 2 to column 14)", - " (in 'mother.stan', line 354, column 2 to column 17)", - " (in 'mother.stan', line 355, column 2 to column 17)", - " (in 'mother.stan', line 356, column 2 to column 16)", - " (in 'mother.stan', line 357, column 2 to column 18)", - " (in 'mother.stan', line 358, column 2 to column 18)", - " (in 'mother.stan', line 363, column 10 to column 38)", - " (in 'mother.stan', line 362, column 23 to line 363, column 39)", - " (in 'mother.stan', line 362, column 8 to line 363, column 39)", - " (in 'mother.stan', line 361, column 21 to line 363, column 40)", - " (in 'mother.stan', line 361, column 6 to line 363, column 40)", - " (in 'mother.stan', line 360, column 19 to line 363, column 41)", - " (in 'mother.stan', line 360, column 4 to line 363, column 41)", - " (in 'mother.stan', line 359, column 17 to line 363, column 42)", - " (in 'mother.stan', line 359, column 2 to line 363, column 42)", - " (in 'mother.stan', line 365, column 4 to column 28)", - " (in 'mother.stan', line 367, column 6 to column 36)", - " (in 'mother.stan', line 370, column 10 to column 46)", - " (in 'mother.stan', line 369, column 23 to line 370, column 47)", - " (in 'mother.stan', line 369, column 8 to line 370, column 47)", - " (in 'mother.stan', line 368, column 21 to line 370, column 48)", - " (in 'mother.stan', line 368, column 6 to line 370, column 48)", - " (in 'mother.stan', line 366, column 19 to line 370, column 49)", - " (in 'mother.stan', line 366, column 4 to line 370, column 49)", - " (in 'mother.stan', line 364, column 17 to line 370, column 50)", - " (in 'mother.stan', line 364, column 2 to line 370, column 50)", - " (in 'mother.stan', line 373, column 6 to column 40)", - " (in 'mother.stan', line 374, column 6 to column 63)", - " (in 'mother.stan', line 372, column 19 to line 375, column 5)", - " (in 'mother.stan', line 372, column 4 to line 375, column 5)", - " (in 'mother.stan', line 371, column 17 to line 375, column 6)", - " (in 'mother.stan', line 371, column 2 to line 375, column 6)", - " (in 'mother.stan', line 376, column 2 to column 62)", - " (in 'mother.stan', line 377, column 2 to column 62)", - " (in 'mother.stan', line 379, column 4 to column 11)", - " (in 'mother.stan', line 380, column 4 to column 35)", - " (in 'mother.stan', line 381, column 4 to line 383, column 5)", - " (in 'mother.stan', line 382, column 6 to column 12)", - " (in 'mother.stan', line 384, column 4 to column 31)", - " (in 'mother.stan', line 385, column 4 to line 387, column 5)", - " (in 'mother.stan', line 386, column 6 to column 12)", - " (in 'mother.stan', line 378, column 2 to line 388, column 3)", - " (in 'mother.stan', line 390, column 2 to column 25)", - " (in 'mother.stan', line 391, column 2 to column 34)", - " (in 'mother.stan', line 392, column 2 to column 33)", - " (in 'mother.stan', line 393, column 2 to column 36)", - " (in 'mother.stan', line 395, column 2 to column 23)", - " (in 'mother.stan', line 396, column 2 to column 30)", - " (in 'mother.stan', line 398, column 2 to column 28)", - " (in 'mother.stan', line 405, column 29 to column 30)", - " (in 'mother.stan', line 406, column 29 to column 30)", - " (in 'mother.stan', line 406, column 31 to column 32)", - " (in 'mother.stan', line 406, column 33 to column 34)", - " (in 'mother.stan', line 407, column 18 to column 19)", - " (in 'mother.stan', line 408, column 21 to column 22)", - " (in 'mother.stan', line 408, column 9 to column 10)", - " (in 'mother.stan', line 409, column 21 to column 22)", - " (in 'mother.stan', line 409, column 23 to column 24)", - " (in 'mother.stan', line 409, column 25 to column 26)", - " (in 'mother.stan', line 409, column 9 to column 10)", - " (in 'mother.stan', line 410, column 13 to column 14)", - " (in 'mother.stan', line 411, column 29 to column 30)", - " (in 'mother.stan', line 411, column 13 to column 14)", - " (in 'mother.stan', line 412, column 29 to column 30)", - " (in 'mother.stan', line 412, column 31 to column 32)", - " (in 'mother.stan', line 412, column 33 to column 34)", - " (in 'mother.stan', line 412, column 13 to column 14)", - " (in 'mother.stan', line 414, column 10 to column 11)", - " (in 'mother.stan', line 415, column 26 to column 27)", - " (in 'mother.stan', line 415, column 10 to column 11)", - " (in 'mother.stan', line 416, column 26 to column 27)", - " (in 'mother.stan', line 416, column 28 to column 29)", - " (in 'mother.stan', line 416, column 30 to column 31)", - " (in 'mother.stan', line 416, column 10 to column 11)", - " (in 'mother.stan', line 417, column 22 to column 23)", - " (in 'mother.stan', line 418, column 22 to column 23)", - " (in 'mother.stan', line 419, column 39 to column 40)", - " (in 'mother.stan', line 419, column 22 to column 23)", - " (in 'mother.stan', line 424, column 30 to column 31)", - " (in 'mother.stan', line 425, column 30 to column 31)", - " (in 'mother.stan', line 425, column 32 to column 33)", - " (in 'mother.stan', line 425, column 34 to column 35)", - " (in 'mother.stan', line 426, column 18 to column 19)", - " (in 'mother.stan', line 427, column 22 to column 23)", - " (in 'mother.stan', line 427, column 9 to column 10)", - " (in 'mother.stan', line 428, column 22 to column 23)", - " (in 'mother.stan', line 428, column 24 to column 25)", - " (in 'mother.stan', line 428, column 26 to column 27)", - " (in 'mother.stan', line 428, column 9 to column 10)", - " (in 'mother.stan', line 429, column 13 to column 14)", - " (in 'mother.stan', line 430, column 30 to column 31)", - " (in 'mother.stan', line 430, column 13 to column 14)", - " (in 'mother.stan', line 431, column 30 to column 31)", - " (in 'mother.stan', line 431, column 32 to column 33)", - " (in 'mother.stan', line 431, column 34 to column 35)", - " (in 'mother.stan', line 431, column 13 to column 14)", - " (in 'mother.stan', line 433, column 10 to column 11)", - " (in 'mother.stan', line 434, column 27 to column 28)", - " (in 'mother.stan', line 434, column 10 to column 11)", - " (in 'mother.stan', line 435, column 27 to column 28)", - " (in 'mother.stan', line 435, column 29 to column 30)", - " (in 'mother.stan', line 435, column 31 to column 32)", - " (in 'mother.stan', line 435, column 10 to column 11)", - " (in 'mother.stan', line 438, column 40 to column 41)", - " (in 'mother.stan', line 517, column 32 to column 33)", - " (in 'mother.stan', line 518, column 32 to column 33)", - " (in 'mother.stan', line 518, column 34 to column 35)", - " (in 'mother.stan', line 518, column 36 to column 37)", - " (in 'mother.stan', line 519, column 18 to column 19)", - " (in 'mother.stan', line 520, column 22 to column 23)", - " (in 'mother.stan', line 520, column 9 to column 10)", - " (in 'mother.stan', line 521, column 22 to column 23)", - " (in 'mother.stan', line 521, column 24 to column 25)", - " (in 'mother.stan', line 521, column 26 to column 27)", - " (in 'mother.stan', line 521, column 9 to column 10)", - " (in 'mother.stan', line 522, column 13 to column 14)", - " (in 'mother.stan', line 523, column 30 to column 31)", - " (in 'mother.stan', line 523, column 13 to column 14)", - " (in 'mother.stan', line 524, column 30 to column 31)", - " (in 'mother.stan', line 524, column 32 to column 33)", - " (in 'mother.stan', line 524, column 34 to column 35)", - " (in 'mother.stan', line 524, column 13 to column 14)", - " (in 'mother.stan', line 526, column 10 to column 11)", - " (in 'mother.stan', line 527, column 27 to column 28)", - " (in 'mother.stan', line 527, column 10 to column 11)", - " (in 'mother.stan', line 528, column 27 to column 28)", - " (in 'mother.stan', line 528, column 29 to column 30)", - " (in 'mother.stan', line 528, column 31 to column 32)", - " (in 'mother.stan', line 528, column 10 to column 11)", - " (in 'mother.stan', line 531, column 40 to column 41)", + " (in 'mother.stan', line 337, column 2 to column 12)", + " (in 'mother.stan', line 338, column 18 to column 23)", + " (in 'mother.stan', line 338, column 2 to column 25)", + " (in 'mother.stan', line 339, column 21 to column 26)", + " (in 'mother.stan', line 339, column 2 to column 30)", + " (in 'mother.stan', line 340, column 21 to column 26)", + " (in 'mother.stan', line 340, column 2 to column 32)", + " (in 'mother.stan', line 341, column 2 to column 14)", + " (in 'mother.stan', line 342, column 20 to column 25)", + " (in 'mother.stan', line 342, column 2 to column 27)", + " (in 'mother.stan', line 343, column 23 to column 28)", + " (in 'mother.stan', line 343, column 2 to column 32)", + " (in 'mother.stan', line 344, column 23 to column 28)", + " (in 'mother.stan', line 344, column 2 to column 34)", + " (in 'mother.stan', line 345, column 9 to column 14)", + " (in 'mother.stan', line 345, column 15 to column 20)", + " (in 'mother.stan', line 345, column 2 to column 31)", + " (in 'mother.stan', line 346, column 37 to column 42)", + " (in 'mother.stan', line 346, column 9 to column 14)", + " (in 'mother.stan', line 346, column 15 to column 20)", + " (in 'mother.stan', line 346, column 2 to column 44)", + " (in 'mother.stan', line 347, column 40 to column 45)", + " (in 'mother.stan', line 347, column 9 to column 14)", + " (in 'mother.stan', line 347, column 15 to column 20)", + " (in 'mother.stan', line 347, column 2 to column 49)", + " (in 'mother.stan', line 348, column 40 to column 45)", + " (in 'mother.stan', line 348, column 9 to column 14)", + " (in 'mother.stan', line 348, column 15 to column 20)", + " (in 'mother.stan', line 348, column 2 to column 51)", + " (in 'mother.stan', line 349, column 9 to column 14)", + " (in 'mother.stan', line 349, column 2 to column 25)", + " (in 'mother.stan', line 350, column 31 to column 36)", + " (in 'mother.stan', line 350, column 9 to column 14)", + " (in 'mother.stan', line 350, column 2 to column 38)", + " (in 'mother.stan', line 351, column 34 to column 39)", + " (in 'mother.stan', line 351, column 9 to column 14)", + " (in 'mother.stan', line 351, column 2 to column 43)", + " (in 'mother.stan', line 352, column 34 to column 39)", + " (in 'mother.stan', line 352, column 9 to column 14)", + " (in 'mother.stan', line 352, column 2 to column 45)", + " (in 'mother.stan', line 353, column 13 to column 18)", + " (in 'mother.stan', line 353, column 2 to column 33)", + " (in 'mother.stan', line 354, column 39 to column 44)", + " (in 'mother.stan', line 354, column 13 to column 18)", + " (in 'mother.stan', line 354, column 2 to column 46)", + " (in 'mother.stan', line 355, column 42 to column 47)", + " (in 'mother.stan', line 355, column 13 to column 18)", + " (in 'mother.stan', line 355, column 2 to column 51)", + " (in 'mother.stan', line 356, column 42 to column 47)", + " (in 'mother.stan', line 356, column 13 to column 18)", + " (in 'mother.stan', line 356, column 2 to column 53)", + " (in 'mother.stan', line 359, column 2 to column 13)", + " (in 'mother.stan', line 360, column 12 to column 13)", + " (in 'mother.stan', line 360, column 2 to column 15)", + " (in 'mother.stan', line 361, column 13 to column 14)", + " (in 'mother.stan', line 361, column 2 to column 34)", + " (in 'mother.stan', line 362, column 2 to column 15)", + " (in 'mother.stan', line 363, column 2 to column 20)", + " (in 'mother.stan', line 364, column 2 to column 29)", + " (in 'mother.stan', line 365, column 2 to column 46)", + " (in 'mother.stan', line 366, column 10 to column 11)", + " (in 'mother.stan', line 366, column 2 to column 24)", + " (in 'mother.stan', line 367, column 27 to column 28)", + " (in 'mother.stan', line 367, column 10 to column 11)", + " (in 'mother.stan', line 367, column 2 to column 30)", + " (in 'mother.stan', line 368, column 27 to column 28)", + " (in 'mother.stan', line 368, column 29 to column 30)", + " (in 'mother.stan', line 368, column 31 to column 32)", + " (in 'mother.stan', line 368, column 10 to column 11)", + " (in 'mother.stan', line 368, column 2 to column 34)", + " (in 'mother.stan', line 369, column 2 to column 39)", + " (in 'mother.stan', line 370, column 2 to column 37)", + " (in 'mother.stan', line 371, column 2 to column 14)", + " (in 'mother.stan', line 372, column 2 to column 14)", + " (in 'mother.stan', line 373, column 2 to column 14)", + " (in 'mother.stan', line 374, column 2 to column 17)", + " (in 'mother.stan', line 375, column 2 to column 17)", + " (in 'mother.stan', line 376, column 2 to column 16)", + " (in 'mother.stan', line 377, column 2 to column 18)", + " (in 'mother.stan', line 378, column 2 to column 18)", + " (in 'mother.stan', line 383, column 10 to column 38)", + " (in 'mother.stan', line 382, column 23 to line 383, column 39)", + " (in 'mother.stan', line 382, column 8 to line 383, column 39)", + " (in 'mother.stan', line 381, column 21 to line 383, column 40)", + " (in 'mother.stan', line 381, column 6 to line 383, column 40)", + " (in 'mother.stan', line 380, column 19 to line 383, column 41)", + " (in 'mother.stan', line 380, column 4 to line 383, column 41)", + " (in 'mother.stan', line 379, column 17 to line 383, column 42)", + " (in 'mother.stan', line 379, column 2 to line 383, column 42)", + " (in 'mother.stan', line 385, column 4 to column 28)", + " (in 'mother.stan', line 387, column 6 to column 36)", + " (in 'mother.stan', line 390, column 10 to column 46)", + " (in 'mother.stan', line 389, column 23 to line 390, column 47)", + " (in 'mother.stan', line 389, column 8 to line 390, column 47)", + " (in 'mother.stan', line 388, column 21 to line 390, column 48)", + " (in 'mother.stan', line 388, column 6 to line 390, column 48)", + " (in 'mother.stan', line 386, column 19 to line 390, column 49)", + " (in 'mother.stan', line 386, column 4 to line 390, column 49)", + " (in 'mother.stan', line 384, column 17 to line 390, column 50)", + " (in 'mother.stan', line 384, column 2 to line 390, column 50)", + " (in 'mother.stan', line 393, column 6 to column 40)", + " (in 'mother.stan', line 394, column 6 to column 63)", + " (in 'mother.stan', line 392, column 19 to line 395, column 5)", + " (in 'mother.stan', line 392, column 4 to line 395, column 5)", + " (in 'mother.stan', line 391, column 17 to line 395, column 6)", + " (in 'mother.stan', line 391, column 2 to line 395, column 6)", + " (in 'mother.stan', line 396, column 2 to column 62)", + " (in 'mother.stan', line 397, column 2 to column 62)", + " (in 'mother.stan', line 399, column 4 to column 11)", + " (in 'mother.stan', line 400, column 4 to column 35)", + " (in 'mother.stan', line 401, column 4 to line 403, column 5)", + " (in 'mother.stan', line 402, column 6 to column 12)", + " (in 'mother.stan', line 404, column 4 to column 31)", + " (in 'mother.stan', line 405, column 4 to line 407, column 5)", + " (in 'mother.stan', line 406, column 6 to column 12)", + " (in 'mother.stan', line 398, column 2 to line 408, column 3)", + " (in 'mother.stan', line 410, column 2 to column 25)", + " (in 'mother.stan', line 411, column 2 to column 34)", + " (in 'mother.stan', line 412, column 2 to column 33)", + " (in 'mother.stan', line 413, column 2 to column 36)", + " (in 'mother.stan', line 415, column 2 to column 23)", + " (in 'mother.stan', line 416, column 2 to column 30)", + " (in 'mother.stan', line 418, column 2 to column 28)", + " (in 'mother.stan', line 420, column 2 to column 29)", + " (in 'mother.stan', line 421, column 35 to column 40)", + " (in 'mother.stan', line 421, column 2 to column 42)", + " (in 'mother.stan', line 422, column 38 to column 43)", + " (in 'mother.stan', line 422, column 2 to column 47)", + " (in 'mother.stan', line 423, column 38 to column 43)", + " (in 'mother.stan', line 423, column 2 to column 49)", + " (in 'mother.stan', line 424, column 9 to column 14)", + " (in 'mother.stan', line 424, column 15 to column 20)", + " (in 'mother.stan', line 424, column 2 to column 46)", + " (in 'mother.stan', line 425, column 52 to column 57)", + " (in 'mother.stan', line 425, column 9 to column 14)", + " (in 'mother.stan', line 425, column 15 to column 20)", + " (in 'mother.stan', line 425, column 2 to column 59)", + " (in 'mother.stan', line 426, column 55 to column 60)", + " (in 'mother.stan', line 426, column 9 to column 14)", + " (in 'mother.stan', line 426, column 15 to column 20)", + " (in 'mother.stan', line 426, column 2 to column 64)", + " (in 'mother.stan', line 427, column 55 to column 60)", + " (in 'mother.stan', line 427, column 9 to column 14)", + " (in 'mother.stan', line 427, column 15 to column 20)", + " (in 'mother.stan', line 427, column 2 to column 66)", + " (in 'mother.stan', line 428, column 9 to column 14)", + " (in 'mother.stan', line 428, column 2 to column 40)", + " (in 'mother.stan', line 429, column 46 to column 51)", + " (in 'mother.stan', line 429, column 9 to column 14)", + " (in 'mother.stan', line 429, column 2 to column 53)", + " (in 'mother.stan', line 430, column 49 to column 54)", + " (in 'mother.stan', line 430, column 9 to column 14)", + " (in 'mother.stan', line 430, column 2 to column 58)", + " (in 'mother.stan', line 431, column 49 to column 54)", + " (in 'mother.stan', line 431, column 9 to column 14)", + " (in 'mother.stan', line 431, column 2 to column 60)", + " (in 'mother.stan', line 432, column 13 to column 18)", + " (in 'mother.stan', line 432, column 2 to column 48)", + " (in 'mother.stan', line 433, column 54 to column 59)", + " (in 'mother.stan', line 433, column 13 to column 18)", + " (in 'mother.stan', line 433, column 2 to column 61)", + " (in 'mother.stan', line 434, column 57 to column 62)", + " (in 'mother.stan', line 434, column 13 to column 18)", + " (in 'mother.stan', line 434, column 2 to column 66)", + " (in 'mother.stan', line 435, column 57 to column 62)", + " (in 'mother.stan', line 435, column 13 to column 18)", + " (in 'mother.stan', line 435, column 2 to column 68)", + " (in 'mother.stan', line 437, column 2 to column 41)", + " (in 'mother.stan', line 438, column 2 to column 42)", + " (in 'mother.stan', line 439, column 2 to column 42)", + " (in 'mother.stan', line 440, column 2 to column 43)", + " (in 'mother.stan', line 441, column 2 to column 53)", + " (in 'mother.stan', line 442, column 2 to column 54)", + " (in 'mother.stan', line 443, column 2 to column 59)", + " (in 'mother.stan', line 444, column 2 to column 60)", + " (in 'mother.stan', line 445, column 2 to column 59)", + " (in 'mother.stan', line 446, column 2 to column 60)", + " (in 'mother.stan', line 448, column 2 to column 53)", + " (in 'mother.stan', line 449, column 2 to column 54)", + " (in 'mother.stan', line 450, column 2 to column 59)", + " (in 'mother.stan', line 451, column 2 to column 60)", + " (in 'mother.stan', line 452, column 2 to column 59)", + " (in 'mother.stan', line 453, column 2 to column 60)", + " (in 'mother.stan', line 455, column 2 to column 54)", + " (in 'mother.stan', line 456, column 2 to column 55)", + " (in 'mother.stan', line 457, column 2 to column 60)", + " (in 'mother.stan', line 458, column 2 to column 61)", + " (in 'mother.stan', line 459, column 2 to column 60)", + " (in 'mother.stan', line 460, column 2 to column 61)", + " (in 'mother.stan', line 462, column 2 to column 54)", + " (in 'mother.stan', line 463, column 2 to column 55)", + " (in 'mother.stan', line 464, column 2 to column 60)", + " (in 'mother.stan', line 465, column 2 to column 61)", + " (in 'mother.stan', line 466, column 2 to column 60)", + " (in 'mother.stan', line 467, column 2 to column 61)", + " (in 'mother.stan', line 469, column 2 to column 59)", + " (in 'mother.stan', line 470, column 2 to column 61)", + " (in 'mother.stan', line 471, column 2 to column 68)", + " (in 'mother.stan', line 472, column 2 to column 70)", + " (in 'mother.stan', line 473, column 2 to column 68)", + " (in 'mother.stan', line 474, column 2 to column 70)", + " (in 'mother.stan', line 476, column 2 to column 46)", + " (in 'mother.stan', line 477, column 2 to column 47)", + " (in 'mother.stan', line 478, column 2 to column 58)", + " (in 'mother.stan', line 479, column 2 to column 59)", + " (in 'mother.stan', line 480, column 2 to column 64)", + " (in 'mother.stan', line 481, column 2 to column 65)", + " (in 'mother.stan', line 482, column 2 to column 64)", + " (in 'mother.stan', line 483, column 2 to column 65)", + " (in 'mother.stan', line 485, column 2 to column 46)", + " (in 'mother.stan', line 486, column 2 to column 47)", + " (in 'mother.stan', line 487, column 2 to column 58)", + " (in 'mother.stan', line 488, column 2 to column 59)", + " (in 'mother.stan', line 489, column 2 to column 64)", + " (in 'mother.stan', line 490, column 2 to column 65)", + " (in 'mother.stan', line 491, column 2 to column 64)", + " (in 'mother.stan', line 492, column 2 to column 65)", + " (in 'mother.stan', line 494, column 2 to column 49)", + " (in 'mother.stan', line 495, column 2 to column 67)", + " (in 'mother.stan', line 496, column 2 to column 76)", + " (in 'mother.stan', line 497, column 2 to column 76)", + " (in 'mother.stan', line 499, column 2 to column 54)", + " (in 'mother.stan', line 500, column 2 to column 55)", + " (in 'mother.stan', line 501, column 2 to column 66)", + " (in 'mother.stan', line 502, column 2 to column 67)", + " (in 'mother.stan', line 503, column 2 to column 72)", + " (in 'mother.stan', line 504, column 2 to column 73)", + " (in 'mother.stan', line 505, column 2 to column 72)", + " (in 'mother.stan', line 506, column 2 to column 73)", + " (in 'mother.stan', line 508, column 2 to column 54)", + " (in 'mother.stan', line 509, column 2 to column 55)", + " (in 'mother.stan', line 510, column 2 to column 66)", + " (in 'mother.stan', line 511, column 2 to column 67)", + " (in 'mother.stan', line 512, column 2 to column 72)", + " (in 'mother.stan', line 513, column 2 to column 73)", + " (in 'mother.stan', line 514, column 2 to column 72)", + " (in 'mother.stan', line 515, column 2 to column 73)", + " (in 'mother.stan', line 517, column 2 to column 61)", + " (in 'mother.stan', line 518, column 2 to column 79)", + " (in 'mother.stan', line 519, column 2 to column 88)", + " (in 'mother.stan', line 520, column 2 to column 88)", + " (in 'mother.stan', line 522, column 2 to column 46)", + " (in 'mother.stan', line 523, column 2 to column 47)", + " (in 'mother.stan', line 524, column 2 to column 58)", + " (in 'mother.stan', line 525, column 2 to column 59)", + " (in 'mother.stan', line 526, column 2 to column 64)", + " (in 'mother.stan', line 527, column 2 to column 65)", + " (in 'mother.stan', line 528, column 2 to column 64)", + " (in 'mother.stan', line 529, column 2 to column 65)", + " (in 'mother.stan', line 531, column 2 to column 46)", + " (in 'mother.stan', line 532, column 2 to column 47)", + " (in 'mother.stan', line 533, column 2 to column 58)", + " (in 'mother.stan', line 534, column 2 to column 59)", + " (in 'mother.stan', line 535, column 2 to column 64)", + " (in 'mother.stan', line 536, column 2 to column 65)", + " (in 'mother.stan', line 537, column 2 to column 64)", + " (in 'mother.stan', line 538, column 2 to column 65)", + " (in 'mother.stan', line 540, column 2 to column 49)", + " (in 'mother.stan', line 541, column 2 to column 67)", + " (in 'mother.stan', line 542, column 2 to column 76)", + " (in 'mother.stan', line 543, column 2 to column 76)", + " (in 'mother.stan', line 550, column 29 to column 30)", + " (in 'mother.stan', line 551, column 29 to column 30)", + " (in 'mother.stan', line 551, column 31 to column 32)", + " (in 'mother.stan', line 551, column 33 to column 34)", + " (in 'mother.stan', line 552, column 18 to column 19)", + " (in 'mother.stan', line 553, column 21 to column 22)", + " (in 'mother.stan', line 553, column 9 to column 10)", + " (in 'mother.stan', line 554, column 21 to column 22)", + " (in 'mother.stan', line 554, column 23 to column 24)", + " (in 'mother.stan', line 554, column 25 to column 26)", + " (in 'mother.stan', line 554, column 9 to column 10)", + " (in 'mother.stan', line 555, column 13 to column 14)", + " (in 'mother.stan', line 556, column 29 to column 30)", + " (in 'mother.stan', line 556, column 13 to column 14)", + " (in 'mother.stan', line 557, column 29 to column 30)", + " (in 'mother.stan', line 557, column 31 to column 32)", + " (in 'mother.stan', line 557, column 33 to column 34)", + " (in 'mother.stan', line 557, column 13 to column 14)", + " (in 'mother.stan', line 559, column 10 to column 11)", + " (in 'mother.stan', line 560, column 26 to column 27)", + " (in 'mother.stan', line 560, column 10 to column 11)", + " (in 'mother.stan', line 561, column 26 to column 27)", + " (in 'mother.stan', line 561, column 28 to column 29)", + " (in 'mother.stan', line 561, column 30 to column 31)", + " (in 'mother.stan', line 561, column 10 to column 11)", + " (in 'mother.stan', line 562, column 22 to column 23)", + " (in 'mother.stan', line 563, column 22 to column 23)", + " (in 'mother.stan', line 564, column 39 to column 40)", + " (in 'mother.stan', line 564, column 22 to column 23)", + " (in 'mother.stan', line 569, column 30 to column 31)", + " (in 'mother.stan', line 570, column 30 to column 31)", + " (in 'mother.stan', line 570, column 32 to column 33)", + " (in 'mother.stan', line 570, column 34 to column 35)", + " (in 'mother.stan', line 571, column 18 to column 19)", + " (in 'mother.stan', line 572, column 22 to column 23)", + " (in 'mother.stan', line 572, column 9 to column 10)", + " (in 'mother.stan', line 573, column 22 to column 23)", + " (in 'mother.stan', line 573, column 24 to column 25)", + " (in 'mother.stan', line 573, column 26 to column 27)", + " (in 'mother.stan', line 573, column 9 to column 10)", + " (in 'mother.stan', line 574, column 13 to column 14)", + " (in 'mother.stan', line 575, column 30 to column 31)", + " (in 'mother.stan', line 575, column 13 to column 14)", + " (in 'mother.stan', line 576, column 30 to column 31)", + " (in 'mother.stan', line 576, column 32 to column 33)", + " (in 'mother.stan', line 576, column 34 to column 35)", + " (in 'mother.stan', line 576, column 13 to column 14)", + " (in 'mother.stan', line 578, column 10 to column 11)", + " (in 'mother.stan', line 579, column 27 to column 28)", + " (in 'mother.stan', line 579, column 10 to column 11)", + " (in 'mother.stan', line 580, column 27 to column 28)", + " (in 'mother.stan', line 580, column 29 to column 30)", + " (in 'mother.stan', line 580, column 31 to column 32)", + " (in 'mother.stan', line 580, column 10 to column 11)", + " (in 'mother.stan', line 583, column 40 to column 41)", + " (in 'mother.stan', line 662, column 32 to column 33)", + " (in 'mother.stan', line 663, column 32 to column 33)", + " (in 'mother.stan', line 663, column 34 to column 35)", + " (in 'mother.stan', line 663, column 36 to column 37)", + " (in 'mother.stan', line 664, column 18 to column 19)", + " (in 'mother.stan', line 665, column 22 to column 23)", + " (in 'mother.stan', line 665, column 9 to column 10)", + " (in 'mother.stan', line 666, column 22 to column 23)", + " (in 'mother.stan', line 666, column 24 to column 25)", + " (in 'mother.stan', line 666, column 26 to column 27)", + " (in 'mother.stan', line 666, column 9 to column 10)", + " (in 'mother.stan', line 667, column 13 to column 14)", + " (in 'mother.stan', line 668, column 30 to column 31)", + " (in 'mother.stan', line 668, column 13 to column 14)", + " (in 'mother.stan', line 669, column 30 to column 31)", + " (in 'mother.stan', line 669, column 32 to column 33)", + " (in 'mother.stan', line 669, column 34 to column 35)", + " (in 'mother.stan', line 669, column 13 to column 14)", + " (in 'mother.stan', line 671, column 10 to column 11)", + " (in 'mother.stan', line 672, column 27 to column 28)", + " (in 'mother.stan', line 672, column 10 to column 11)", + " (in 'mother.stan', line 673, column 27 to column 28)", + " (in 'mother.stan', line 673, column 29 to column 30)", + " (in 'mother.stan', line 673, column 31 to column 32)", + " (in 'mother.stan', line 673, column 10 to column 11)", + " (in 'mother.stan', line 676, column 40 to column 41)", " (in 'mother.stan', line 10, column 16 to column 17)", " (in 'mother.stan', line 13, column 16 to column 25)", " (in 'mother.stan', line 13, column 4 to column 25)", @@ -2024,12 +2213,12 @@ foo(const int& n, std::ostream* pstream__) { (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 387; + current_statement__ = 576; if (logical_eq(n, 0)) { - current_statement__ = 386; + current_statement__ = 575; return 1; } - current_statement__ = 388; + current_statement__ = 577; return (n * foo((n - 1), pstream__)); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2070,14 +2259,14 @@ sho(const T0__& t, const std::vector& y, std::vector dydt; dydt = std::vector(2, DUMMY_VAR__); - current_statement__ = 392; + current_statement__ = 581; assign(dydt, cons_list(index_uni(1), nil_index_list()), y[(2 - 1)], "assigning variable dydt"); - current_statement__ = 393; + current_statement__ = 582; assign(dydt, cons_list(index_uni(2), nil_index_list()), (-y[(1 - 1)] - (theta[(1 - 1)] * y[(2 - 1)])), "assigning variable dydt"); - current_statement__ = 394; + current_statement__ = 583; return dydt; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2108,7 +2297,7 @@ foo_bar0(std::ostream* pstream__) { (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 396; + current_statement__ = 585; return 0.0; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2136,7 +2325,7 @@ foo_bar1(const T0__& x, std::ostream* pstream__) { (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 398; + current_statement__ = 587; return 1.0; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2166,7 +2355,7 @@ foo_bar2(const T0__& x, const T1__& y, std::ostream* pstream__) { (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 400; + current_statement__ = 589; return 2.0; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2194,7 +2383,7 @@ foo_lpmf(const int& y, const T1__& lambda, std::ostream* pstream__) { (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 402; + current_statement__ = 591; return 1.0; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2223,7 +2412,7 @@ foo_lcdf(const int& y, const T1__& lambda, std::ostream* pstream__) { (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 404; + current_statement__ = 593; return 1.0; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2252,7 +2441,7 @@ foo_lccdf(const int& y, const T1__& lambda, std::ostream* pstream__) { (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 406; + current_statement__ = 595; return 1.0; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2283,7 +2472,7 @@ foo_rng(const T0__& mu, const T1__& sigma, RNG& base_rng__, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 408; + current_statement__ = 597; return normal_rng(mu, sigma, base_rng__); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2314,9 +2503,9 @@ unit_normal_lp(const T0__& u, T_lp__& lp__, T_lp_accum__& lp_accum__, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 410; + current_statement__ = 599; lp_accum__.add(normal_log(u, 0, 1)); - current_statement__ = 411; + current_statement__ = 600; lp_accum__.add(uniform_lpdf(u, -100, 100)); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2346,34 +2535,34 @@ foo_1(const int& a, std::ostream* pstream__) { (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 414; + current_statement__ = 603; while (1) { break; } - current_statement__ = 416; + current_statement__ = 605; while (0) { continue; } - current_statement__ = 418; + current_statement__ = 607; for (int i = 1; i <= 10; ++i) { break;} - current_statement__ = 420; + current_statement__ = 609; for (int i = 1; i <= 10; ++i) { continue;} - current_statement__ = 425; + current_statement__ = 614; while (1) { int b; b = std::numeric_limits::min(); - current_statement__ = 422; + current_statement__ = 611; b = 5; break; } - current_statement__ = 432; + current_statement__ = 621; while (1) { - current_statement__ = 430; + current_statement__ = 619; if (0) { break; } else { - current_statement__ = 428; + current_statement__ = 617; if (1) { break; } else { @@ -2381,19 +2570,19 @@ foo_1(const int& a, std::ostream* pstream__) { } } } - current_statement__ = 435; + current_statement__ = 624; while (1) { - current_statement__ = 434; + current_statement__ = 623; while (0) { break; } } - current_statement__ = 439; + current_statement__ = 628; while (1) { - current_statement__ = 437; + current_statement__ = 626; for (int i = 1; i <= 10; ++i) { break;} } - current_statement__ = 454; + current_statement__ = 643; while (1) { std::vector> vs; vs = std::vector>(2, std::vector(3, std::numeric_limits::min())); @@ -2401,50 +2590,50 @@ foo_1(const int& a, std::ostream* pstream__) { int z; z = std::numeric_limits::min(); - current_statement__ = 442; + current_statement__ = 631; for (int sym1__ = 1; sym1__ <= stan::math::size(vs); ++sym1__) { { std::vector v; - current_statement__ = 442; + current_statement__ = 631; assign(v, nil_index_list(), vs[(sym1__ - 1)], "assigning variable v"); - current_statement__ = 443; + current_statement__ = 632; z = 0; break; }} - current_statement__ = 445; + current_statement__ = 634; for (int sym1__ = 1; sym1__ <= stan::math::size(vs); ++sym1__) { { std::vector v; - current_statement__ = 445; + current_statement__ = 634; assign(v, nil_index_list(), vs[(sym1__ - 1)], "assigning variable v"); - current_statement__ = 446; + current_statement__ = 635; z = 0; continue; }} - current_statement__ = 448; + current_statement__ = 637; for (int sym1__ = 1; sym1__ <= stan::math::size(vs); ++sym1__) { { std::vector v; - current_statement__ = 448; + current_statement__ = 637; assign(v, nil_index_list(), vs[(sym1__ - 1)], "assigning variable v"); - current_statement__ = 449; + current_statement__ = 638; for (int sym1__ = 1; sym1__ <= stan::math::size(v); ++sym1__) { { int vv; - current_statement__ = 449; + current_statement__ = 638; vv = v[(sym1__ - 1)]; - current_statement__ = 450; + current_statement__ = 639; z = 0; break; }} - current_statement__ = 452; + current_statement__ = 641; z = 1; }} } - current_statement__ = 464; + current_statement__ = 653; while (1) { local_scalar_t__ z; z = DUMMY_VAR__; @@ -2453,9 +2642,9 @@ foo_1(const int& a, std::ostream* pstream__) { vs = Eigen::Matrix(2, 3); stan::math::fill(vs, DUMMY_VAR__); - current_statement__ = 457; + current_statement__ = 646; for (int sym1__ = 1; sym1__ <= rows(vs); ++sym1__) { - current_statement__ = 457; + current_statement__ = 646; for (int sym2__ = 1; sym2__ <= stan::math::size( rvalue(vs, @@ -2463,17 +2652,17 @@ foo_1(const int& a, std::ostream* pstream__) { "vs")); ++sym2__) { { local_scalar_t__ v; - current_statement__ = 457; + current_statement__ = 646; v = rvalue(vs, cons_list(index_uni(sym1__), cons_list(index_uni(sym2__), nil_index_list())), "vs"); - current_statement__ = 458; + current_statement__ = 647; z = 0; break; }}} - current_statement__ = 460; + current_statement__ = 649; for (int sym1__ = 1; sym1__ <= rows(vs); ++sym1__) { - current_statement__ = 460; + current_statement__ = 649; for (int sym2__ = 1; sym2__ <= stan::math::size( rvalue(vs, @@ -2481,16 +2670,16 @@ foo_1(const int& a, std::ostream* pstream__) { "vs")); ++sym2__) { { local_scalar_t__ v; - current_statement__ = 460; + current_statement__ = 649; v = rvalue(vs, cons_list(index_uni(sym1__), cons_list(index_uni(sym2__), nil_index_list())), "vs"); - current_statement__ = 461; + current_statement__ = 650; z = 3.1; continue; }}} } - current_statement__ = 474; + current_statement__ = 663; while (1) { local_scalar_t__ z; z = DUMMY_VAR__; @@ -2499,28 +2688,28 @@ foo_1(const int& a, std::ostream* pstream__) { vs = Eigen::Matrix(2); stan::math::fill(vs, DUMMY_VAR__); - current_statement__ = 467; + current_statement__ = 656; for (int sym1__ = 1; sym1__ <= stan::math::size(vs); ++sym1__) { { local_scalar_t__ v; - current_statement__ = 467; + current_statement__ = 656; v = vs[(sym1__ - 1)]; - current_statement__ = 468; + current_statement__ = 657; z = 0; break; }} - current_statement__ = 470; + current_statement__ = 659; for (int sym1__ = 1; sym1__ <= stan::math::size(vs); ++sym1__) { { local_scalar_t__ v; - current_statement__ = 470; + current_statement__ = 659; v = vs[(sym1__ - 1)]; - current_statement__ = 471; + current_statement__ = 660; z = 3.2; continue; }} } - current_statement__ = 484; + current_statement__ = 673; while (1) { local_scalar_t__ z; z = DUMMY_VAR__; @@ -2529,44 +2718,44 @@ foo_1(const int& a, std::ostream* pstream__) { vs = Eigen::Matrix(2); stan::math::fill(vs, DUMMY_VAR__); - current_statement__ = 477; + current_statement__ = 666; for (int sym1__ = 1; sym1__ <= stan::math::size(vs); ++sym1__) { { local_scalar_t__ v; - current_statement__ = 477; + current_statement__ = 666; v = vs[(sym1__ - 1)]; - current_statement__ = 478; + current_statement__ = 667; z = 0; break; }} - current_statement__ = 480; + current_statement__ = 669; for (int sym1__ = 1; sym1__ <= stan::math::size(vs); ++sym1__) { { local_scalar_t__ v; - current_statement__ = 480; + current_statement__ = 669; v = vs[(sym1__ - 1)]; - current_statement__ = 481; + current_statement__ = 670; z = 3.3; continue; }} } - current_statement__ = 492; + current_statement__ = 681; while (1) { int b; b = std::numeric_limits::min(); - current_statement__ = 486; + current_statement__ = 675; b = 5; { int c; c = std::numeric_limits::min(); - current_statement__ = 488; + current_statement__ = 677; c = 6; break; } } - current_statement__ = 493; + current_statement__ = 682; return 0; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2599,16 +2788,16 @@ foo_2(const int& a, std::ostream* pstream__) { int y; y = std::numeric_limits::min(); - current_statement__ = 497; + current_statement__ = 686; for (int sym1__ = 1; sym1__ <= stan::math::size(vs); ++sym1__) { { int v; - current_statement__ = 497; + current_statement__ = 686; v = vs[(sym1__ - 1)]; - current_statement__ = 498; + current_statement__ = 687; y = v; }} - current_statement__ = 499; + current_statement__ = 688; return 0; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2636,7 +2825,7 @@ foo_3(const T0__& t, const int& n, std::ostream* pstream__) { (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 501; + current_statement__ = 690; return rep_array(t, n); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2665,7 +2854,7 @@ foo_lp(const T0__& x, T_lp__& lp__, T_lp_accum__& lp_accum__, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 503; + current_statement__ = 692; return (x + get_lp(lp__, lp_accum__)); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2696,7 +2885,7 @@ foo_4(const T0__& x, std::ostream* pstream__) { (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 505; + current_statement__ = 694; std::stringstream errmsg_stream__; errmsg_stream__ << "user-specified rejection"; errmsg_stream__ << x; @@ -2736,13 +2925,13 @@ relative_diff(const T0__& x, const T1__& y, const T2__& max_, local_scalar_t__ avg_scale; avg_scale = DUMMY_VAR__; - current_statement__ = 509; + current_statement__ = 698; abs_diff = stan::math::fabs((x - y)); - current_statement__ = 510; + current_statement__ = 699; avg_scale = ((stan::math::fabs(x) + stan::math::fabs(y)) / 2); - current_statement__ = 512; + current_statement__ = 701; if (logical_gt((abs_diff / avg_scale), max_)) { - current_statement__ = 511; + current_statement__ = 700; std::stringstream errmsg_stream__; errmsg_stream__ << "user-specified rejection, difference above "; errmsg_stream__ << max_; @@ -2752,9 +2941,9 @@ relative_diff(const T0__& x, const T1__& y, const T2__& max_, errmsg_stream__ << y; throw std::domain_error(errmsg_stream__.str()); } - current_statement__ = 514; + current_statement__ = 703; if (logical_lt((abs_diff / avg_scale), min_)) { - current_statement__ = 513; + current_statement__ = 702; std::stringstream errmsg_stream__; errmsg_stream__ << "user-specified rejection, difference below "; errmsg_stream__ << min_; @@ -2764,7 +2953,7 @@ relative_diff(const T0__& x, const T1__& y, const T2__& max_, errmsg_stream__ << y; throw std::domain_error(errmsg_stream__.str()); } - current_statement__ = 515; + current_statement__ = 704; return (abs_diff / avg_scale); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2799,7 +2988,7 @@ foo_5(const Eigen::Matrix& shared_params, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 517; + current_statement__ = 706; return transpose(stan::math::to_row_vector( stan::math::array_builder().add(1).add(2).add(3).array())); } catch (const std::exception& e) { @@ -2840,7 +3029,7 @@ foo_five_args(const T0__& x1, const T1__& x2, const T2__& x3, const T3__& x4, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 519; + current_statement__ = 708; return x1; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2880,7 +3069,7 @@ foo_five_args_lp(const T0__& x1, const T1__& x2, const T2__& x3, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 521; + current_statement__ = 710; return x1; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2916,27 +3105,27 @@ covsqrt2corsqrt(const Eigen::Matrix& mat, const int& invert, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 523; + current_statement__ = 712; validate_non_negative_index("o", "rows(mat)", rows(mat)); - current_statement__ = 524; + current_statement__ = 713; validate_non_negative_index("o", "cols(mat)", cols(mat)); Eigen::Matrix o; o = Eigen::Matrix(rows(mat), cols(mat)); stan::math::fill(o, DUMMY_VAR__); - current_statement__ = 526; + current_statement__ = 715; assign(o, nil_index_list(), mat, "assigning variable o"); - current_statement__ = 527; + current_statement__ = 716; assign(o, cons_list(index_uni(1), nil_index_list()), stan::model::deep_copy( rvalue(o, cons_list(index_uni(2), nil_index_list()), "o")), "assigning variable o"); - current_statement__ = 528; + current_statement__ = 717; assign(o, cons_list(index_min_max(3, 4), nil_index_list()), stan::model::deep_copy( rvalue(o, cons_list(index_min_max(1, 2), nil_index_list()), "o")), "assigning variable o"); - current_statement__ = 529; + current_statement__ = 718; return o; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -2983,7 +3172,7 @@ f0(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 531; + current_statement__ = 720; if (pstream__) { stan_print(pstream__, "hi"); stan_print(pstream__, "\n"); @@ -3043,7 +3232,7 @@ f1(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 533; + current_statement__ = 722; return a1; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3100,7 +3289,7 @@ f2(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 535; + current_statement__ = 724; return a2; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3157,7 +3346,7 @@ f3(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 537; + current_statement__ = 726; return a3; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3216,7 +3405,7 @@ f4(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 539; + current_statement__ = 728; return a4; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3277,7 +3466,7 @@ f5(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 541; + current_statement__ = 730; return a5; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3338,7 +3527,7 @@ f6(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 543; + current_statement__ = 732; return a6; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3399,7 +3588,7 @@ f7(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 545; + current_statement__ = 734; return a7; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3460,7 +3649,7 @@ f8(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 547; + current_statement__ = 736; return a8; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3521,7 +3710,7 @@ f9(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 549; + current_statement__ = 738; return a9; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3582,7 +3771,7 @@ f10(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 551; + current_statement__ = 740; return a10; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3643,7 +3832,7 @@ f11(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 553; + current_statement__ = 742; return a11; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3704,7 +3893,7 @@ f12(const int& a1, const std::vector& a2, (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 555; + current_statement__ = 744; return a12; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3758,7 +3947,7 @@ foo_6(std::ostream* pstream__) { ar_mat = std::vector>>(60, std::vector>(70, Eigen::Matrix(40, 50))); stan::math::fill(ar_mat, DUMMY_VAR__); - current_statement__ = 561; + current_statement__ = 750; assign(ar_mat, cons_list(index_uni(1), cons_list(index_uni(1), @@ -3789,7 +3978,7 @@ matfoo(std::ostream* pstream__) { (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 563; + current_statement__ = 752; return stan::math::to_matrix( stan::math::array_builder>() .add(stan::math::to_row_vector(stan::math::array_builder() @@ -3825,7 +4014,7 @@ vecfoo(std::ostream* pstream__) { (void) DUMMY_VAR__; // suppress unused var warning try { - current_statement__ = 565; + current_statement__ = 754; return transpose(stan::math::to_row_vector( stan::math::array_builder().add(1).add(2).add(3).add(4) .add(5).add(6).add(7).add(8).add(9).add(10).array())); @@ -3859,10 +4048,10 @@ vecmufoo(const T0__& mu, std::ostream* pstream__) { l = Eigen::Matrix(10); stan::math::fill(l, DUMMY_VAR__); - current_statement__ = 567; + current_statement__ = 756; assign(l, nil_index_list(), multiply(mu, vecfoo(pstream__)), "assigning variable l"); - current_statement__ = 568; + current_statement__ = 757; return l; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3895,13 +4084,13 @@ vecmubar(const T0__& mu, std::ostream* pstream__) { l = Eigen::Matrix(10); stan::math::fill(l, DUMMY_VAR__); - current_statement__ = 570; + current_statement__ = 759; assign(l, nil_index_list(), multiply(mu, transpose(stan::math::to_row_vector(stan::math::array_builder() .add(1).add(2).add(3).add(4).add(5).add(6).add(7).add(8).add(9) .add(10).array()))), "assigning variable l"); - current_statement__ = 571; + current_statement__ = 760; return rvalue(l, cons_list(index_multi(stan::math::array_builder().add(1) .add(2).add(3).add(4).add(5).array()), nil_index_list()), "l"); @@ -3940,13 +4129,13 @@ algebra_system(const Eigen::Matrix& x, f_x = Eigen::Matrix(2); stan::math::fill(f_x, DUMMY_VAR__); - current_statement__ = 574; + current_statement__ = 763; assign(f_x, cons_list(index_uni(1), nil_index_list()), (x[(1 - 1)] - y[(1 - 1)]), "assigning variable f_x"); - current_statement__ = 575; + current_statement__ = 764; assign(f_x, cons_list(index_uni(2), nil_index_list()), (x[(2 - 1)] - y[(2 - 1)]), "assigning variable f_x"); - current_statement__ = 576; + current_statement__ = 765; return f_x; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -3986,10 +4175,10 @@ binomialf(const Eigen::Matrix& phi, lpmf = Eigen::Matrix(1); stan::math::fill(lpmf, DUMMY_VAR__); - current_statement__ = 579; + current_statement__ = 768; assign(lpmf, cons_list(index_uni(1), nil_index_list()), 0.0, "assigning variable lpmf"); - current_statement__ = 580; + current_statement__ = 769; return lpmf; } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); @@ -4036,6 +4225,26 @@ class mother_model final : public model_base_crtp { Eigen::Matrix d_cfcov_54; Eigen::Matrix d_cfcov_33; std::vector> d_cfcov_33_ar; + int d_int; + std::vector d_int_array; + std::vector> d_int_array_2d; + std::vector>> d_int_array_3d; + double d_real; + std::vector d_real_array; + std::vector> d_real_array_2d; + std::vector>> d_real_array_3d; + Eigen::Matrix d_matrix; + std::vector> d_matrix_array; + std::vector>> d_matrix_array_2d; + std::vector>>> d_matrix_array_3d; + Eigen::Matrix d_vector; + std::vector> d_vector_array; + std::vector>> d_vector_array_2d; + std::vector>>> d_vector_array_3d; + Eigen::Matrix d_row_vector; + std::vector> d_row_vector_array; + std::vector>> d_row_vector_array_2d; + std::vector>>> d_row_vector_array_3d; int td_int; std::vector td_1d; std::vector td_1dk; @@ -4056,6 +4265,22 @@ class mother_model final : public model_base_crtp { std::vector> x_i; std::vector> arr_mul_ind; std::vector x_mul_ind; + double transformed_data_real; + std::vector transformed_data_real_array; + std::vector> transformed_data_real_array_2d; + std::vector>> transformed_data_real_array_3d; + Eigen::Matrix transformed_data_matrix; + std::vector> transformed_data_matrix_array; + std::vector>> transformed_data_matrix_array_2d; + std::vector>>> transformed_data_matrix_array_3d; + Eigen::Matrix transformed_data_vector; + std::vector> transformed_data_vector_array; + std::vector>> transformed_data_vector_array_2d; + std::vector>>> transformed_data_vector_array_3d; + Eigen::Matrix transformed_data_row_vector; + std::vector> transformed_data_row_vector_array; + std::vector>> transformed_data_row_vector_array_2d; + std::vector>>> transformed_data_row_vector_array_3d; public: ~mother_model() final { } @@ -4710,148 +4935,699 @@ class mother_model final : public model_base_crtp { check_cholesky_factor(function__, "d_cfcov_33_ar[sym1__]", d_cfcov_33_ar[(sym1__ - 1)]);} current_statement__ = 232; - td_int = std::numeric_limits::min(); + context__.validate_dims("data initialization","d_int","int", + context__.to_vec()); + d_int = std::numeric_limits::min(); + current_statement__ = 232; + d_int = context__.vals_i("d_int")[(1 - 1)]; current_statement__ = 233; - validate_non_negative_index("td_1d", "N", N); + validate_non_negative_index("d_int_array", "d_int", d_int); current_statement__ = 234; - td_1d = std::vector(N, std::numeric_limits::min()); + context__.validate_dims("data initialization","d_int_array","int", + context__.to_vec(d_int)); + d_int_array = std::vector(d_int, std::numeric_limits::min()); + current_statement__ = 234; + assign(d_int_array, nil_index_list(), context__.vals_i("d_int_array"), + "assigning variable d_int_array"); current_statement__ = 235; - validate_non_negative_index("td_1dk", "M", M); + validate_non_negative_index("d_int_array_2d", "d_int", d_int); current_statement__ = 236; + context__.validate_dims("data initialization","d_int_array_2d","int", + context__.to_vec(d_int, 2)); + d_int_array_2d = std::vector>(d_int, std::vector(2, std::numeric_limits::min())); + + { + std::vector d_int_array_2d_flat__; + current_statement__ = 236; + assign(d_int_array_2d_flat__, nil_index_list(), + context__.vals_i("d_int_array_2d"), + "assigning variable d_int_array_2d_flat__"); + current_statement__ = 236; + pos__ = 1; + current_statement__ = 236; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + current_statement__ = 236; + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + current_statement__ = 236; + assign(d_int_array_2d, + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list())), + d_int_array_2d_flat__[(pos__ - 1)], + "assigning variable d_int_array_2d"); + current_statement__ = 236; + pos__ = (pos__ + 1);}} + } + current_statement__ = 237; + validate_non_negative_index("d_int_array_3d", "d_int", d_int); + current_statement__ = 238; + context__.validate_dims("data initialization","d_int_array_3d","int", + context__.to_vec(d_int, 2, 3)); + d_int_array_3d = std::vector>>(d_int, std::vector>(2, std::vector(3, std::numeric_limits::min()))); + + { + std::vector d_int_array_3d_flat__; + current_statement__ = 238; + assign(d_int_array_3d_flat__, nil_index_list(), + context__.vals_i("d_int_array_3d"), + "assigning variable d_int_array_3d_flat__"); + current_statement__ = 238; + pos__ = 1; + current_statement__ = 238; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 238; + for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { + current_statement__ = 238; + for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { + current_statement__ = 238; + assign(d_int_array_3d, + cons_list(index_uni(sym3__), + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list()))), + d_int_array_3d_flat__[(pos__ - 1)], + "assigning variable d_int_array_3d"); + current_statement__ = 238; + pos__ = (pos__ + 1);}}} + } + current_statement__ = 239; + context__.validate_dims("data initialization","d_real","double", + context__.to_vec()); + d_real = std::numeric_limits::quiet_NaN(); + + current_statement__ = 239; + d_real = context__.vals_r("d_real")[(1 - 1)]; + current_statement__ = 240; + validate_non_negative_index("d_real_array", "d_int", d_int); + current_statement__ = 241; + context__.validate_dims("data initialization","d_real_array","double", + context__.to_vec(d_int)); + d_real_array = std::vector(d_int, std::numeric_limits::quiet_NaN()); + + current_statement__ = 241; + assign(d_real_array, nil_index_list(), + context__.vals_r("d_real_array"), "assigning variable d_real_array"); + current_statement__ = 242; + validate_non_negative_index("d_real_array_2d", "d_int", d_int); + current_statement__ = 243; + context__.validate_dims("data initialization","d_real_array_2d", + "double",context__.to_vec(d_int, 2)); + d_real_array_2d = std::vector>(d_int, std::vector(2, std::numeric_limits::quiet_NaN())); + + { + std::vector d_real_array_2d_flat__; + current_statement__ = 243; + assign(d_real_array_2d_flat__, nil_index_list(), + context__.vals_r("d_real_array_2d"), + "assigning variable d_real_array_2d_flat__"); + current_statement__ = 243; + pos__ = 1; + current_statement__ = 243; + for (int sym1__ = 1; sym1__ <= 2; ++sym1__) { + current_statement__ = 243; + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + current_statement__ = 243; + assign(d_real_array_2d, + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list())), + d_real_array_2d_flat__[(pos__ - 1)], + "assigning variable d_real_array_2d"); + current_statement__ = 243; + pos__ = (pos__ + 1);}} + } + current_statement__ = 244; + validate_non_negative_index("d_real_array_3d", "d_int", d_int); + current_statement__ = 245; + context__.validate_dims("data initialization","d_real_array_3d", + "double",context__.to_vec(d_int, 2, 3)); + d_real_array_3d = std::vector>>(d_int, std::vector>(2, std::vector(3, std::numeric_limits::quiet_NaN()))); + + { + std::vector d_real_array_3d_flat__; + current_statement__ = 245; + assign(d_real_array_3d_flat__, nil_index_list(), + context__.vals_r("d_real_array_3d"), + "assigning variable d_real_array_3d_flat__"); + current_statement__ = 245; + pos__ = 1; + current_statement__ = 245; + for (int sym1__ = 1; sym1__ <= 3; ++sym1__) { + current_statement__ = 245; + for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { + current_statement__ = 245; + for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { + current_statement__ = 245; + assign(d_real_array_3d, + cons_list(index_uni(sym3__), + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list()))), + d_real_array_3d_flat__[(pos__ - 1)], + "assigning variable d_real_array_3d"); + current_statement__ = 245; + pos__ = (pos__ + 1);}}} + } + current_statement__ = 246; + validate_non_negative_index("d_matrix", "d_int", d_int); + current_statement__ = 247; + validate_non_negative_index("d_matrix", "d_int", d_int); + current_statement__ = 248; + context__.validate_dims("data initialization","d_matrix","double", + context__.to_vec(d_int, d_int)); + d_matrix = Eigen::Matrix(d_int, d_int); + stan::math::fill(d_matrix, std::numeric_limits::quiet_NaN()); + + { + std::vector d_matrix_flat__; + current_statement__ = 248; + assign(d_matrix_flat__, nil_index_list(), + context__.vals_r("d_matrix"), "assigning variable d_matrix_flat__"); + current_statement__ = 248; + pos__ = 1; + current_statement__ = 248; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + current_statement__ = 248; + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + current_statement__ = 248; + assign(d_matrix, + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list())), + d_matrix_flat__[(pos__ - 1)], "assigning variable d_matrix"); + current_statement__ = 248; + pos__ = (pos__ + 1);}} + } + current_statement__ = 249; + validate_non_negative_index("d_matrix_array", "d_int", d_int); + current_statement__ = 250; + validate_non_negative_index("d_matrix_array", "d_int", d_int); + current_statement__ = 251; + validate_non_negative_index("d_matrix_array", "d_int", d_int); + current_statement__ = 252; + context__.validate_dims("data initialization","d_matrix_array", + "double",context__.to_vec(d_int, d_int, d_int)); + d_matrix_array = std::vector>(d_int, Eigen::Matrix(d_int, d_int)); + stan::math::fill(d_matrix_array, std::numeric_limits::quiet_NaN()); + + { + std::vector d_matrix_array_flat__; + current_statement__ = 252; + assign(d_matrix_array_flat__, nil_index_list(), + context__.vals_r("d_matrix_array"), + "assigning variable d_matrix_array_flat__"); + current_statement__ = 252; + pos__ = 1; + current_statement__ = 252; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + current_statement__ = 252; + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + current_statement__ = 252; + for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { + current_statement__ = 252; + assign(d_matrix_array, + cons_list(index_uni(sym3__), + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list()))), + d_matrix_array_flat__[(pos__ - 1)], + "assigning variable d_matrix_array"); + current_statement__ = 252; + pos__ = (pos__ + 1);}}} + } + current_statement__ = 253; + validate_non_negative_index("d_matrix_array_2d", "d_int", d_int); + current_statement__ = 254; + validate_non_negative_index("d_matrix_array_2d", "d_int", d_int); + current_statement__ = 255; + validate_non_negative_index("d_matrix_array_2d", "d_int", d_int); + current_statement__ = 256; + context__.validate_dims("data initialization","d_matrix_array_2d", + "double",context__.to_vec(d_int, 2, d_int, d_int)); + d_matrix_array_2d = std::vector>>(d_int, std::vector>(2, Eigen::Matrix(d_int, d_int))); + stan::math::fill(d_matrix_array_2d, std::numeric_limits::quiet_NaN()); + + { + std::vector d_matrix_array_2d_flat__; + current_statement__ = 256; + assign(d_matrix_array_2d_flat__, nil_index_list(), + context__.vals_r("d_matrix_array_2d"), + "assigning variable d_matrix_array_2d_flat__"); + current_statement__ = 256; + pos__ = 1; + current_statement__ = 256; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + current_statement__ = 256; + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + current_statement__ = 256; + for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { + current_statement__ = 256; + for (int sym4__ = 1; sym4__ <= d_int; ++sym4__) { + current_statement__ = 256; + assign(d_matrix_array_2d, + cons_list(index_uni(sym4__), + cons_list(index_uni(sym3__), + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list())))), + d_matrix_array_2d_flat__[(pos__ - 1)], + "assigning variable d_matrix_array_2d"); + current_statement__ = 256; + pos__ = (pos__ + 1);}}}} + } + current_statement__ = 257; + validate_non_negative_index("d_matrix_array_3d", "d_int", d_int); + current_statement__ = 258; + validate_non_negative_index("d_matrix_array_3d", "d_int", d_int); + current_statement__ = 259; + validate_non_negative_index("d_matrix_array_3d", "d_int", d_int); + current_statement__ = 260; + context__.validate_dims("data initialization","d_matrix_array_3d", + "double",context__.to_vec(d_int, 2, 3, d_int, d_int)); + d_matrix_array_3d = std::vector>>>(d_int, std::vector>>(2, std::vector>(3, Eigen::Matrix(d_int, d_int)))); + stan::math::fill(d_matrix_array_3d, std::numeric_limits::quiet_NaN()); + + { + std::vector d_matrix_array_3d_flat__; + current_statement__ = 260; + assign(d_matrix_array_3d_flat__, nil_index_list(), + context__.vals_r("d_matrix_array_3d"), + "assigning variable d_matrix_array_3d_flat__"); + current_statement__ = 260; + pos__ = 1; + current_statement__ = 260; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + current_statement__ = 260; + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + current_statement__ = 260; + for (int sym3__ = 1; sym3__ <= 3; ++sym3__) { + current_statement__ = 260; + for (int sym4__ = 1; sym4__ <= 2; ++sym4__) { + current_statement__ = 260; + for (int sym5__ = 1; sym5__ <= d_int; ++sym5__) { + current_statement__ = 260; + assign(d_matrix_array_3d, + cons_list(index_uni(sym5__), + cons_list(index_uni(sym4__), + cons_list(index_uni(sym3__), + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list()))))), + d_matrix_array_3d_flat__[(pos__ - 1)], + "assigning variable d_matrix_array_3d"); + current_statement__ = 260; + pos__ = (pos__ + 1);}}}}} + } + current_statement__ = 261; + validate_non_negative_index("d_vector", "d_int", d_int); + current_statement__ = 262; + context__.validate_dims("data initialization","d_vector","double", + context__.to_vec(d_int)); + d_vector = Eigen::Matrix(d_int); + stan::math::fill(d_vector, std::numeric_limits::quiet_NaN()); + + { + std::vector d_vector_flat__; + current_statement__ = 262; + assign(d_vector_flat__, nil_index_list(), + context__.vals_r("d_vector"), "assigning variable d_vector_flat__"); + current_statement__ = 262; + pos__ = 1; + current_statement__ = 262; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + current_statement__ = 262; + assign(d_vector, cons_list(index_uni(sym1__), nil_index_list()), + d_vector_flat__[(pos__ - 1)], "assigning variable d_vector"); + current_statement__ = 262; + pos__ = (pos__ + 1);} + } + current_statement__ = 263; + validate_non_negative_index("d_vector_array", "d_int", d_int); + current_statement__ = 264; + validate_non_negative_index("d_vector_array", "d_int", d_int); + current_statement__ = 265; + context__.validate_dims("data initialization","d_vector_array", + "double",context__.to_vec(d_int, d_int)); + d_vector_array = std::vector>(d_int, Eigen::Matrix(d_int)); + stan::math::fill(d_vector_array, std::numeric_limits::quiet_NaN()); + + { + std::vector d_vector_array_flat__; + current_statement__ = 265; + assign(d_vector_array_flat__, nil_index_list(), + context__.vals_r("d_vector_array"), + "assigning variable d_vector_array_flat__"); + current_statement__ = 265; + pos__ = 1; + current_statement__ = 265; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + current_statement__ = 265; + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + current_statement__ = 265; + assign(d_vector_array, + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list())), + d_vector_array_flat__[(pos__ - 1)], + "assigning variable d_vector_array"); + current_statement__ = 265; + pos__ = (pos__ + 1);}} + } + current_statement__ = 266; + validate_non_negative_index("d_vector_array_2d", "d_int", d_int); + current_statement__ = 267; + validate_non_negative_index("d_vector_array_2d", "d_int", d_int); + current_statement__ = 268; + context__.validate_dims("data initialization","d_vector_array_2d", + "double",context__.to_vec(d_int, 2, d_int)); + d_vector_array_2d = std::vector>>(d_int, std::vector>(2, Eigen::Matrix(d_int))); + stan::math::fill(d_vector_array_2d, std::numeric_limits::quiet_NaN()); + + { + std::vector d_vector_array_2d_flat__; + current_statement__ = 268; + assign(d_vector_array_2d_flat__, nil_index_list(), + context__.vals_r("d_vector_array_2d"), + "assigning variable d_vector_array_2d_flat__"); + current_statement__ = 268; + pos__ = 1; + current_statement__ = 268; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + current_statement__ = 268; + for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { + current_statement__ = 268; + for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { + current_statement__ = 268; + assign(d_vector_array_2d, + cons_list(index_uni(sym3__), + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list()))), + d_vector_array_2d_flat__[(pos__ - 1)], + "assigning variable d_vector_array_2d"); + current_statement__ = 268; + pos__ = (pos__ + 1);}}} + } + current_statement__ = 269; + validate_non_negative_index("d_vector_array_3d", "d_int", d_int); + current_statement__ = 270; + validate_non_negative_index("d_vector_array_3d", "d_int", d_int); + current_statement__ = 271; + context__.validate_dims("data initialization","d_vector_array_3d", + "double",context__.to_vec(d_int, 2, 3, d_int)); + d_vector_array_3d = std::vector>>>(d_int, std::vector>>(2, std::vector>(3, Eigen::Matrix(d_int)))); + stan::math::fill(d_vector_array_3d, std::numeric_limits::quiet_NaN()); + + { + std::vector d_vector_array_3d_flat__; + current_statement__ = 271; + assign(d_vector_array_3d_flat__, nil_index_list(), + context__.vals_r("d_vector_array_3d"), + "assigning variable d_vector_array_3d_flat__"); + current_statement__ = 271; + pos__ = 1; + current_statement__ = 271; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + current_statement__ = 271; + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + current_statement__ = 271; + for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { + current_statement__ = 271; + for (int sym4__ = 1; sym4__ <= d_int; ++sym4__) { + current_statement__ = 271; + assign(d_vector_array_3d, + cons_list(index_uni(sym4__), + cons_list(index_uni(sym3__), + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list())))), + d_vector_array_3d_flat__[(pos__ - 1)], + "assigning variable d_vector_array_3d"); + current_statement__ = 271; + pos__ = (pos__ + 1);}}}} + } + current_statement__ = 272; + validate_non_negative_index("d_row_vector", "d_int", d_int); + current_statement__ = 273; + context__.validate_dims("data initialization","d_row_vector","double", + context__.to_vec(d_int)); + d_row_vector = Eigen::Matrix(d_int); + stan::math::fill(d_row_vector, std::numeric_limits::quiet_NaN()); + + { + std::vector d_row_vector_flat__; + current_statement__ = 273; + assign(d_row_vector_flat__, nil_index_list(), + context__.vals_r("d_row_vector"), + "assigning variable d_row_vector_flat__"); + current_statement__ = 273; + pos__ = 1; + current_statement__ = 273; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + current_statement__ = 273; + assign(d_row_vector, + cons_list(index_uni(sym1__), nil_index_list()), + d_row_vector_flat__[(pos__ - 1)], + "assigning variable d_row_vector"); + current_statement__ = 273; + pos__ = (pos__ + 1);} + } + current_statement__ = 274; + validate_non_negative_index("d_row_vector_array", "d_int", d_int); + current_statement__ = 275; + validate_non_negative_index("d_row_vector_array", "d_int", d_int); + current_statement__ = 276; + context__.validate_dims("data initialization","d_row_vector_array", + "double",context__.to_vec(d_int, d_int)); + d_row_vector_array = std::vector>(d_int, Eigen::Matrix(d_int)); + stan::math::fill(d_row_vector_array, std::numeric_limits::quiet_NaN()); + + { + std::vector d_row_vector_array_flat__; + current_statement__ = 276; + assign(d_row_vector_array_flat__, nil_index_list(), + context__.vals_r("d_row_vector_array"), + "assigning variable d_row_vector_array_flat__"); + current_statement__ = 276; + pos__ = 1; + current_statement__ = 276; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + current_statement__ = 276; + for (int sym2__ = 1; sym2__ <= d_int; ++sym2__) { + current_statement__ = 276; + assign(d_row_vector_array, + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list())), + d_row_vector_array_flat__[(pos__ - 1)], + "assigning variable d_row_vector_array"); + current_statement__ = 276; + pos__ = (pos__ + 1);}} + } + current_statement__ = 277; + validate_non_negative_index("d_row_vector_array_2d", "d_int", d_int); + current_statement__ = 278; + validate_non_negative_index("d_row_vector_array_2d", "d_int", d_int); + current_statement__ = 279; + context__.validate_dims("data initialization","d_row_vector_array_2d", + "double",context__.to_vec(d_int, 2, d_int)); + d_row_vector_array_2d = std::vector>>(d_int, std::vector>(2, Eigen::Matrix(d_int))); + stan::math::fill(d_row_vector_array_2d, std::numeric_limits::quiet_NaN()); + + { + std::vector d_row_vector_array_2d_flat__; + current_statement__ = 279; + assign(d_row_vector_array_2d_flat__, nil_index_list(), + context__.vals_r("d_row_vector_array_2d"), + "assigning variable d_row_vector_array_2d_flat__"); + current_statement__ = 279; + pos__ = 1; + current_statement__ = 279; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + current_statement__ = 279; + for (int sym2__ = 1; sym2__ <= 2; ++sym2__) { + current_statement__ = 279; + for (int sym3__ = 1; sym3__ <= d_int; ++sym3__) { + current_statement__ = 279; + assign(d_row_vector_array_2d, + cons_list(index_uni(sym3__), + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list()))), + d_row_vector_array_2d_flat__[(pos__ - 1)], + "assigning variable d_row_vector_array_2d"); + current_statement__ = 279; + pos__ = (pos__ + 1);}}} + } + current_statement__ = 280; + validate_non_negative_index("d_row_vector_array_3d", "d_int", d_int); + current_statement__ = 281; + validate_non_negative_index("d_row_vector_array_3d", "d_int", d_int); + current_statement__ = 282; + context__.validate_dims("data initialization","d_row_vector_array_3d", + "double",context__.to_vec(d_int, 2, 3, d_int)); + d_row_vector_array_3d = std::vector>>>(d_int, std::vector>>(2, std::vector>(3, Eigen::Matrix(d_int)))); + stan::math::fill(d_row_vector_array_3d, std::numeric_limits::quiet_NaN()); + + { + std::vector d_row_vector_array_3d_flat__; + current_statement__ = 282; + assign(d_row_vector_array_3d_flat__, nil_index_list(), + context__.vals_r("d_row_vector_array_3d"), + "assigning variable d_row_vector_array_3d_flat__"); + current_statement__ = 282; + pos__ = 1; + current_statement__ = 282; + for (int sym1__ = 1; sym1__ <= d_int; ++sym1__) { + current_statement__ = 282; + for (int sym2__ = 1; sym2__ <= 3; ++sym2__) { + current_statement__ = 282; + for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { + current_statement__ = 282; + for (int sym4__ = 1; sym4__ <= d_int; ++sym4__) { + current_statement__ = 282; + assign(d_row_vector_array_3d, + cons_list(index_uni(sym4__), + cons_list(index_uni(sym3__), + cons_list(index_uni(sym2__), + cons_list(index_uni(sym1__), nil_index_list())))), + d_row_vector_array_3d_flat__[(pos__ - 1)], + "assigning variable d_row_vector_array_3d"); + current_statement__ = 282; + pos__ = (pos__ + 1);}}}} + } + current_statement__ = 283; + td_int = std::numeric_limits::min(); + + current_statement__ = 284; + validate_non_negative_index("td_1d", "N", N); + current_statement__ = 285; + td_1d = std::vector(N, std::numeric_limits::min()); + + current_statement__ = 286; + validate_non_negative_index("td_1dk", "M", M); + current_statement__ = 287; td_1dk = std::vector(M, std::numeric_limits::min()); - current_statement__ = 236; + current_statement__ = 287; assign(td_1dk, nil_index_list(), rep_array(1, M), "assigning variable td_1dk"); - current_statement__ = 237; + current_statement__ = 288; td_a = std::numeric_limits::min(); - current_statement__ = 237; + current_statement__ = 288; td_a = N; - current_statement__ = 238; + current_statement__ = 289; td_b = std::numeric_limits::quiet_NaN(); - current_statement__ = 238; + current_statement__ = 289; td_b = (N * J); - current_statement__ = 239; + current_statement__ = 290; td_c = std::numeric_limits::quiet_NaN(); - current_statement__ = 239; + current_statement__ = 290; td_c = foo_bar1(td_b, pstream__); - current_statement__ = 240; + current_statement__ = 291; td_ar_mat = std::vector>>(4, std::vector>(5, Eigen::Matrix(2, 3))); stan::math::fill(td_ar_mat, std::numeric_limits::quiet_NaN()); - current_statement__ = 241; + current_statement__ = 292; validate_non_negative_index("td_simplex", "N", N); - current_statement__ = 242; + current_statement__ = 293; td_simplex = Eigen::Matrix(N); stan::math::fill(td_simplex, std::numeric_limits::quiet_NaN()); - current_statement__ = 243; + current_statement__ = 294; validate_non_negative_index("td_1d_simplex", "N", N); - current_statement__ = 244; + current_statement__ = 295; validate_non_negative_index("td_1d_simplex", "N", N); - current_statement__ = 245; + current_statement__ = 296; td_1d_simplex = std::vector>(N, Eigen::Matrix(N)); stan::math::fill(td_1d_simplex, std::numeric_limits::quiet_NaN()); - current_statement__ = 246; + current_statement__ = 297; validate_non_negative_index("td_3d_simplex", "N", N); - current_statement__ = 247; + current_statement__ = 298; validate_non_negative_index("td_3d_simplex", "M", M); - current_statement__ = 248; + current_statement__ = 299; validate_non_negative_index("td_3d_simplex", "K", K); - current_statement__ = 249; + current_statement__ = 300; validate_non_negative_index("td_3d_simplex", "N", N); - current_statement__ = 250; + current_statement__ = 301; td_3d_simplex = std::vector>>>(N, std::vector>>(M, std::vector>(K, Eigen::Matrix(N)))); stan::math::fill(td_3d_simplex, std::numeric_limits::quiet_NaN()); - current_statement__ = 251; + current_statement__ = 302; td_cfcov_54 = Eigen::Matrix(5, 5); stan::math::fill(td_cfcov_54, std::numeric_limits::quiet_NaN()); - current_statement__ = 252; + current_statement__ = 303; td_cfcov_33 = Eigen::Matrix(3, 3); stan::math::fill(td_cfcov_33, std::numeric_limits::quiet_NaN()); - current_statement__ = 253; + current_statement__ = 304; x = Eigen::Matrix(2); stan::math::fill(x, std::numeric_limits::quiet_NaN()); - current_statement__ = 254; + current_statement__ = 305; y = Eigen::Matrix(2); stan::math::fill(y, std::numeric_limits::quiet_NaN()); - current_statement__ = 255; + current_statement__ = 306; dat = std::vector(0, std::numeric_limits::quiet_NaN()); - current_statement__ = 256; + current_statement__ = 307; dat_int = std::vector(0, std::numeric_limits::min()); - current_statement__ = 257; + current_statement__ = 308; x_r = std::vector>(0, std::vector(0, std::numeric_limits::quiet_NaN())); - current_statement__ = 258; + current_statement__ = 309; x_i = std::vector>(0, std::vector(0, std::numeric_limits::min())); - current_statement__ = 259; + current_statement__ = 310; td_int = (primitive_value(1) || primitive_value(2)); - current_statement__ = 260; + current_statement__ = 311; td_int = (primitive_value(1) && primitive_value(2)); - current_statement__ = 269; + current_statement__ = 320; for (int i = 1; i <= 2; ++i) { - current_statement__ = 267; + current_statement__ = 318; for (int j = 1; j <= 3; ++j) { - current_statement__ = 265; + current_statement__ = 316; for (int m = 1; m <= 4; ++m) { - current_statement__ = 263; + current_statement__ = 314; for (int n = 1; n <= 5; ++n) { - current_statement__ = 261; + current_statement__ = 312; assign(td_ar_mat, cons_list(index_uni(m), cons_list(index_uni(n), cons_list(index_uni(i), cons_list(index_uni(j), nil_index_list())))), 0.4, "assigning variable td_ar_mat");}}}} - current_statement__ = 280; + current_statement__ = 331; for (int i = 1; i <= N; ++i) { - current_statement__ = 270; + current_statement__ = 321; assign(td_simplex, cons_list(index_uni(i), nil_index_list()), (1.0 / N), "assigning variable td_simplex"); - current_statement__ = 278; + current_statement__ = 329; for (int n = 1; n <= N; ++n) { - current_statement__ = 271; + current_statement__ = 322; assign(td_1d_simplex, cons_list(index_uni(n), cons_list(index_uni(i), nil_index_list())), (1.0 / N), "assigning variable td_1d_simplex"); - current_statement__ = 276; + current_statement__ = 327; for (int m = 1; m <= M; ++m) { - current_statement__ = 274; + current_statement__ = 325; for (int k = 1; k <= K; ++k) { - current_statement__ = 272; + current_statement__ = 323; assign(td_3d_simplex, cons_list(index_uni(n), cons_list(index_uni(m), cons_list(index_uni(k), cons_list(index_uni(i), nil_index_list())))), (1.0 / N), "assigning variable td_3d_simplex");}}}} - current_statement__ = 286; + current_statement__ = 337; for (int i = 1; i <= 4; ++i) { - current_statement__ = 284; + current_statement__ = 335; for (int j = 1; j <= 5; ++j) { Eigen::Matrix l_mat; l_mat = Eigen::Matrix(2, 3); stan::math::fill(l_mat, std::numeric_limits::quiet_NaN()); - current_statement__ = 281; + current_statement__ = 332; assign(l_mat, nil_index_list(), d_ar_mat[(i - 1)][(j - 1)], "assigning variable l_mat"); - current_statement__ = 282; + current_statement__ = 333; if (pstream__) { stan_print(pstream__, "ar dim1: "); stan_print(pstream__, i); @@ -4861,11 +5637,11 @@ class mother_model final : public model_base_crtp { stan_print(pstream__, l_mat); stan_print(pstream__, "\n"); }}} - current_statement__ = 287; + current_statement__ = 338; assign(td_cfcov_54, nil_index_list(), diag_matrix(rep_vector(1, rows(td_cfcov_54))), "assigning variable td_cfcov_54"); - current_statement__ = 288; + current_statement__ = 339; assign(td_cfcov_33, nil_index_list(), diag_matrix(rep_vector(1, rows(td_cfcov_33))), "assigning variable td_cfcov_33"); @@ -4877,85 +5653,584 @@ class mother_model final : public model_base_crtp { blocked_tdata_vs = Eigen::Matrix(2); stan::math::fill(blocked_tdata_vs, std::numeric_limits::quiet_NaN()); - current_statement__ = 291; + current_statement__ = 342; for (int sym1__ = 1; sym1__ <= stan::math::size(blocked_tdata_vs); ++sym1__) { { double v; - current_statement__ = 291; + current_statement__ = 342; v = blocked_tdata_vs[(sym1__ - 1)]; - current_statement__ = 292; + current_statement__ = 343; z = 0; }} std::vector indices; indices = std::vector(4, std::numeric_limits::min()); - current_statement__ = 293; + current_statement__ = 344; assign(indices, nil_index_list(), stan::math::array_builder() .add(1).add(2).add(3).add(4).array(), "assigning variable indices"); { std::vector sym1__; - current_statement__ = 294; + current_statement__ = 345; assign(sym1__, nil_index_list(), rvalue(indices, cons_list(index_min_max(1, 3), nil_index_list()), "indices"), "assigning variable sym1__"); - current_statement__ = 294; + current_statement__ = 345; for (int sym2__ = 1; sym2__ <= stan::math::size(sym1__); ++sym2__) { { int i; - current_statement__ = 294; + current_statement__ = 345; i = sym1__[(sym2__ - 1)]; - current_statement__ = 295; + current_statement__ = 346; z = i; }} } } - current_statement__ = 297; + current_statement__ = 348; assign(td_1dk, nil_index_list(), rvalue(td_1d, cons_list(index_multi(stan::model::deep_copy(td_1dk)), nil_index_list()), "td_1d"), "assigning variable td_1dk"); - current_statement__ = 298; + current_statement__ = 349; assign(td_simplex, nil_index_list(), rvalue(td_1d_simplex, cons_list(index_uni(1), cons_list(index_omni(), nil_index_list())), "td_1d_simplex"), "assigning variable td_simplex"); - current_statement__ = 299; + current_statement__ = 350; assign(td_simplex, nil_index_list(), rvalue(td_1d_simplex, cons_list(index_uni(1), cons_list(index_omni(), nil_index_list())), "td_1d_simplex"), "assigning variable td_simplex"); - current_statement__ = 300; + current_statement__ = 351; assign(td_simplex, nil_index_list(), rvalue(td_1d_simplex, cons_list(index_uni(1), cons_list(index_min_max(1, N), nil_index_list())), "td_1d_simplex"), "assigning variable td_simplex"); - current_statement__ = 301; + current_statement__ = 352; arr_mul_ind = std::vector>(2, std::vector(2, std::numeric_limits::min())); - current_statement__ = 302; + current_statement__ = 353; assign(arr_mul_ind, cons_list(index_uni(1), cons_list(index_min_max(1, 2), nil_index_list())), stan::math::array_builder().add(1).add(1).array(), "assigning variable arr_mul_ind"); - current_statement__ = 303; + current_statement__ = 354; x_mul_ind = std::vector(2, std::numeric_limits::quiet_NaN()); - current_statement__ = 303; + current_statement__ = 354; assign(x_mul_ind, nil_index_list(), stan::math::array_builder() .add(1).add(2).array(), "assigning variable x_mul_ind"); - current_statement__ = 240; + current_statement__ = 355; + transformed_data_real = std::numeric_limits::quiet_NaN(); + + current_statement__ = 356; + validate_non_negative_index("transformed_data_real_array", "d_int", + d_int); + current_statement__ = 357; + transformed_data_real_array = std::vector(d_int, std::numeric_limits::quiet_NaN()); + + current_statement__ = 358; + validate_non_negative_index("transformed_data_real_array_2d", "d_int", + d_int); + current_statement__ = 359; + transformed_data_real_array_2d = std::vector>(d_int, std::vector(2, std::numeric_limits::quiet_NaN())); + + current_statement__ = 360; + validate_non_negative_index("transformed_data_real_array_3d", "d_int", + d_int); + current_statement__ = 361; + transformed_data_real_array_3d = std::vector>>(d_int, std::vector>(2, std::vector(3, std::numeric_limits::quiet_NaN()))); + + current_statement__ = 362; + validate_non_negative_index("transformed_data_matrix", "d_int", d_int); + current_statement__ = 363; + validate_non_negative_index("transformed_data_matrix", "d_int", d_int); + current_statement__ = 364; + transformed_data_matrix = Eigen::Matrix(d_int, d_int); + stan::math::fill(transformed_data_matrix, std::numeric_limits::quiet_NaN()); + + current_statement__ = 365; + validate_non_negative_index("transformed_data_matrix_array", "d_int", + d_int); + current_statement__ = 366; + validate_non_negative_index("transformed_data_matrix_array", "d_int", + d_int); + current_statement__ = 367; + validate_non_negative_index("transformed_data_matrix_array", "d_int", + d_int); + current_statement__ = 368; + transformed_data_matrix_array = std::vector>(d_int, Eigen::Matrix(d_int, d_int)); + stan::math::fill(transformed_data_matrix_array, std::numeric_limits::quiet_NaN()); + + current_statement__ = 369; + validate_non_negative_index("transformed_data_matrix_array_2d", + "d_int", d_int); + current_statement__ = 370; + validate_non_negative_index("transformed_data_matrix_array_2d", + "d_int", d_int); + current_statement__ = 371; + validate_non_negative_index("transformed_data_matrix_array_2d", + "d_int", d_int); + current_statement__ = 372; + transformed_data_matrix_array_2d = std::vector>>(d_int, std::vector>(2, Eigen::Matrix(d_int, d_int))); + stan::math::fill(transformed_data_matrix_array_2d, std::numeric_limits::quiet_NaN()); + + current_statement__ = 373; + validate_non_negative_index("transformed_data_matrix_array_3d", + "d_int", d_int); + current_statement__ = 374; + validate_non_negative_index("transformed_data_matrix_array_3d", + "d_int", d_int); + current_statement__ = 375; + validate_non_negative_index("transformed_data_matrix_array_3d", + "d_int", d_int); + current_statement__ = 376; + transformed_data_matrix_array_3d = std::vector>>>(d_int, std::vector>>(2, std::vector>(3, Eigen::Matrix(d_int, d_int)))); + stan::math::fill(transformed_data_matrix_array_3d, std::numeric_limits::quiet_NaN()); + + current_statement__ = 377; + validate_non_negative_index("transformed_data_vector", "d_int", d_int); + current_statement__ = 378; + transformed_data_vector = Eigen::Matrix(d_int); + stan::math::fill(transformed_data_vector, std::numeric_limits::quiet_NaN()); + + current_statement__ = 379; + validate_non_negative_index("transformed_data_vector_array", "d_int", + d_int); + current_statement__ = 380; + validate_non_negative_index("transformed_data_vector_array", "d_int", + d_int); + current_statement__ = 381; + transformed_data_vector_array = std::vector>(d_int, Eigen::Matrix(d_int)); + stan::math::fill(transformed_data_vector_array, std::numeric_limits::quiet_NaN()); + + current_statement__ = 382; + validate_non_negative_index("transformed_data_vector_array_2d", + "d_int", d_int); + current_statement__ = 383; + validate_non_negative_index("transformed_data_vector_array_2d", + "d_int", d_int); + current_statement__ = 384; + transformed_data_vector_array_2d = std::vector>>(d_int, std::vector>(2, Eigen::Matrix(d_int))); + stan::math::fill(transformed_data_vector_array_2d, std::numeric_limits::quiet_NaN()); + + current_statement__ = 385; + validate_non_negative_index("transformed_data_vector_array_3d", + "d_int", d_int); + current_statement__ = 386; + validate_non_negative_index("transformed_data_vector_array_3d", + "d_int", d_int); + current_statement__ = 387; + transformed_data_vector_array_3d = std::vector>>>(d_int, std::vector>>(2, std::vector>(3, Eigen::Matrix(d_int)))); + stan::math::fill(transformed_data_vector_array_3d, std::numeric_limits::quiet_NaN()); + + current_statement__ = 388; + validate_non_negative_index("transformed_data_row_vector", "d_int", + d_int); + current_statement__ = 389; + transformed_data_row_vector = Eigen::Matrix(d_int); + stan::math::fill(transformed_data_row_vector, std::numeric_limits::quiet_NaN()); + + current_statement__ = 390; + validate_non_negative_index("transformed_data_row_vector_array", + "d_int", d_int); + current_statement__ = 391; + validate_non_negative_index("transformed_data_row_vector_array", + "d_int", d_int); + current_statement__ = 392; + transformed_data_row_vector_array = std::vector>(d_int, Eigen::Matrix(d_int)); + stan::math::fill(transformed_data_row_vector_array, std::numeric_limits::quiet_NaN()); + + current_statement__ = 393; + validate_non_negative_index("transformed_data_row_vector_array_2d", + "d_int", d_int); + current_statement__ = 394; + validate_non_negative_index("transformed_data_row_vector_array_2d", + "d_int", d_int); + current_statement__ = 395; + transformed_data_row_vector_array_2d = std::vector>>(d_int, std::vector>(2, Eigen::Matrix(d_int))); + stan::math::fill(transformed_data_row_vector_array_2d, std::numeric_limits::quiet_NaN()); + + current_statement__ = 396; + validate_non_negative_index("transformed_data_row_vector_array_3d", + "d_int", d_int); + current_statement__ = 397; + validate_non_negative_index("transformed_data_row_vector_array_3d", + "d_int", d_int); + current_statement__ = 398; + transformed_data_row_vector_array_3d = std::vector>>>(d_int, std::vector>>(2, std::vector>(3, Eigen::Matrix(d_int)))); + stan::math::fill(transformed_data_row_vector_array_3d, std::numeric_limits::quiet_NaN()); + + current_statement__ = 399; + transformed_data_real = pow(d_int, d_int); + current_statement__ = 400; + transformed_data_real = pow(d_real, d_int); + current_statement__ = 401; + transformed_data_real = pow(d_int, d_real); + current_statement__ = 402; + transformed_data_real = pow(d_real, d_real); + current_statement__ = 403; + assign(transformed_data_real_array, nil_index_list(), + pow(d_int_array, d_int), + "assigning variable transformed_data_real_array"); + current_statement__ = 404; + assign(transformed_data_real_array, nil_index_list(), + pow(d_int_array, d_real), + "assigning variable transformed_data_real_array"); + current_statement__ = 405; + assign(transformed_data_real_array_2d, nil_index_list(), + pow(d_int_array_2d, d_int), + "assigning variable transformed_data_real_array_2d"); + current_statement__ = 406; + assign(transformed_data_real_array_2d, nil_index_list(), + pow(d_int_array_2d, d_real), + "assigning variable transformed_data_real_array_2d"); + current_statement__ = 407; + assign(transformed_data_real_array_3d, nil_index_list(), + pow(d_int_array_3d, d_int), + "assigning variable transformed_data_real_array_3d"); + current_statement__ = 408; + assign(transformed_data_real_array_3d, nil_index_list(), + pow(d_int_array_3d, d_real), + "assigning variable transformed_data_real_array_3d"); + current_statement__ = 409; + assign(transformed_data_real_array, nil_index_list(), + pow(d_int, d_int_array), + "assigning variable transformed_data_real_array"); + current_statement__ = 410; + assign(transformed_data_real_array, nil_index_list(), + pow(d_real, d_int_array), + "assigning variable transformed_data_real_array"); + current_statement__ = 411; + assign(transformed_data_real_array_2d, nil_index_list(), + pow(d_int, d_int_array_2d), + "assigning variable transformed_data_real_array_2d"); + current_statement__ = 412; + assign(transformed_data_real_array_2d, nil_index_list(), + pow(d_real, d_int_array_2d), + "assigning variable transformed_data_real_array_2d"); + current_statement__ = 413; + assign(transformed_data_real_array_3d, nil_index_list(), + pow(d_int, d_int_array_3d), + "assigning variable transformed_data_real_array_3d"); + current_statement__ = 414; + assign(transformed_data_real_array_3d, nil_index_list(), + pow(d_real, d_int_array_3d), + "assigning variable transformed_data_real_array_3d"); + current_statement__ = 415; + assign(transformed_data_real_array, nil_index_list(), + pow(d_int, d_real_array), + "assigning variable transformed_data_real_array"); + current_statement__ = 416; + assign(transformed_data_real_array, nil_index_list(), + pow(d_real, d_real_array), + "assigning variable transformed_data_real_array"); + current_statement__ = 417; + assign(transformed_data_real_array_2d, nil_index_list(), + pow(d_int, d_real_array_2d), + "assigning variable transformed_data_real_array_2d"); + current_statement__ = 418; + assign(transformed_data_real_array_2d, nil_index_list(), + pow(d_real, d_real_array_2d), + "assigning variable transformed_data_real_array_2d"); + current_statement__ = 419; + assign(transformed_data_real_array_3d, nil_index_list(), + pow(d_int, d_real_array_3d), + "assigning variable transformed_data_real_array_3d"); + current_statement__ = 420; + assign(transformed_data_real_array_3d, nil_index_list(), + pow(d_real, d_real_array_3d), + "assigning variable transformed_data_real_array_3d"); + current_statement__ = 421; + assign(transformed_data_real_array, nil_index_list(), + pow(d_real_array, d_int), + "assigning variable transformed_data_real_array"); + current_statement__ = 422; + assign(transformed_data_real_array, nil_index_list(), + pow(d_real_array, d_real), + "assigning variable transformed_data_real_array"); + current_statement__ = 423; + assign(transformed_data_real_array_2d, nil_index_list(), + pow(d_real_array_2d, d_int), + "assigning variable transformed_data_real_array_2d"); + current_statement__ = 424; + assign(transformed_data_real_array_2d, nil_index_list(), + pow(d_real_array_2d, d_real), + "assigning variable transformed_data_real_array_2d"); + current_statement__ = 425; + assign(transformed_data_real_array_3d, nil_index_list(), + pow(d_real_array_3d, d_int), + "assigning variable transformed_data_real_array_3d"); + current_statement__ = 426; + assign(transformed_data_real_array_3d, nil_index_list(), + pow(d_real_array_3d, d_real), + "assigning variable transformed_data_real_array_3d"); + current_statement__ = 427; + assign(transformed_data_real_array, nil_index_list(), + pow(d_int_array, d_int_array), + "assigning variable transformed_data_real_array"); + current_statement__ = 428; + assign(transformed_data_real_array, nil_index_list(), + pow(d_real_array, d_real_array), + "assigning variable transformed_data_real_array"); + current_statement__ = 429; + assign(transformed_data_real_array_2d, nil_index_list(), + pow(d_int_array_2d, d_int_array_2d), + "assigning variable transformed_data_real_array_2d"); + current_statement__ = 430; + assign(transformed_data_real_array_2d, nil_index_list(), + pow(d_real_array_2d, d_real_array_2d), + "assigning variable transformed_data_real_array_2d"); + current_statement__ = 431; + assign(transformed_data_real_array_3d, nil_index_list(), + pow(d_int_array_3d, d_int_array_3d), + "assigning variable transformed_data_real_array_3d"); + current_statement__ = 432; + assign(transformed_data_real_array_3d, nil_index_list(), + pow(d_real_array_3d, d_real_array_3d), + "assigning variable transformed_data_real_array_3d"); + current_statement__ = 433; + assign(transformed_data_vector, nil_index_list(), pow(d_vector, d_int), + "assigning variable transformed_data_vector"); + current_statement__ = 434; + assign(transformed_data_vector, nil_index_list(), + pow(d_vector, d_real), "assigning variable transformed_data_vector"); + current_statement__ = 435; + assign(transformed_data_vector_array, nil_index_list(), + pow(d_vector_array, d_int), + "assigning variable transformed_data_vector_array"); + current_statement__ = 436; + assign(transformed_data_vector_array, nil_index_list(), + pow(d_vector_array, d_real), + "assigning variable transformed_data_vector_array"); + current_statement__ = 437; + assign(transformed_data_vector_array_2d, nil_index_list(), + pow(d_vector_array_2d, d_int), + "assigning variable transformed_data_vector_array_2d"); + current_statement__ = 438; + assign(transformed_data_vector_array_2d, nil_index_list(), + pow(d_vector_array_2d, d_real), + "assigning variable transformed_data_vector_array_2d"); + current_statement__ = 439; + assign(transformed_data_vector_array_3d, nil_index_list(), + pow(d_vector_array_3d, d_int), + "assigning variable transformed_data_vector_array_3d"); + current_statement__ = 440; + assign(transformed_data_vector_array_3d, nil_index_list(), + pow(d_vector_array_3d, d_real), + "assigning variable transformed_data_vector_array_3d"); + current_statement__ = 441; + assign(transformed_data_vector, nil_index_list(), pow(d_int, d_vector), + "assigning variable transformed_data_vector"); + current_statement__ = 442; + assign(transformed_data_vector, nil_index_list(), + pow(d_real, d_vector), "assigning variable transformed_data_vector"); + current_statement__ = 443; + assign(transformed_data_vector_array, nil_index_list(), + pow(d_int, d_vector_array), + "assigning variable transformed_data_vector_array"); + current_statement__ = 444; + assign(transformed_data_vector_array, nil_index_list(), + pow(d_real, d_vector_array), + "assigning variable transformed_data_vector_array"); + current_statement__ = 445; + assign(transformed_data_vector_array_2d, nil_index_list(), + pow(d_int, d_vector_array_2d), + "assigning variable transformed_data_vector_array_2d"); + current_statement__ = 446; + assign(transformed_data_vector_array_2d, nil_index_list(), + pow(d_real, d_vector_array_2d), + "assigning variable transformed_data_vector_array_2d"); + current_statement__ = 447; + assign(transformed_data_vector_array_3d, nil_index_list(), + pow(d_int, d_vector_array_3d), + "assigning variable transformed_data_vector_array_3d"); + current_statement__ = 448; + assign(transformed_data_vector_array_3d, nil_index_list(), + pow(d_real, d_vector_array_3d), + "assigning variable transformed_data_vector_array_3d"); + current_statement__ = 449; + assign(transformed_data_vector, nil_index_list(), + pow(d_vector, d_vector), "assigning variable transformed_data_vector"); + current_statement__ = 450; + assign(transformed_data_vector_array, nil_index_list(), + pow(d_vector_array, d_vector_array), + "assigning variable transformed_data_vector_array"); + current_statement__ = 451; + assign(transformed_data_vector_array_2d, nil_index_list(), + pow(d_vector_array_2d, d_vector_array_2d), + "assigning variable transformed_data_vector_array_2d"); + current_statement__ = 452; + assign(transformed_data_vector_array_3d, nil_index_list(), + pow(d_vector_array_3d, d_vector_array_3d), + "assigning variable transformed_data_vector_array_3d"); + current_statement__ = 453; + assign(transformed_data_row_vector, nil_index_list(), + pow(d_row_vector, d_int), + "assigning variable transformed_data_row_vector"); + current_statement__ = 454; + assign(transformed_data_row_vector, nil_index_list(), + pow(d_row_vector, d_real), + "assigning variable transformed_data_row_vector"); + current_statement__ = 455; + assign(transformed_data_row_vector_array, nil_index_list(), + pow(d_row_vector_array, d_int), + "assigning variable transformed_data_row_vector_array"); + current_statement__ = 456; + assign(transformed_data_row_vector_array, nil_index_list(), + pow(d_row_vector_array, d_real), + "assigning variable transformed_data_row_vector_array"); + current_statement__ = 457; + assign(transformed_data_row_vector_array_2d, nil_index_list(), + pow(d_row_vector_array_2d, d_int), + "assigning variable transformed_data_row_vector_array_2d"); + current_statement__ = 458; + assign(transformed_data_row_vector_array_2d, nil_index_list(), + pow(d_row_vector_array_2d, d_real), + "assigning variable transformed_data_row_vector_array_2d"); + current_statement__ = 459; + assign(transformed_data_row_vector_array_3d, nil_index_list(), + pow(d_row_vector_array_3d, d_int), + "assigning variable transformed_data_row_vector_array_3d"); + current_statement__ = 460; + assign(transformed_data_row_vector_array_3d, nil_index_list(), + pow(d_row_vector_array_3d, d_real), + "assigning variable transformed_data_row_vector_array_3d"); + current_statement__ = 461; + assign(transformed_data_row_vector, nil_index_list(), + pow(d_int, d_row_vector), + "assigning variable transformed_data_row_vector"); + current_statement__ = 462; + assign(transformed_data_row_vector, nil_index_list(), + pow(d_real, d_row_vector), + "assigning variable transformed_data_row_vector"); + current_statement__ = 463; + assign(transformed_data_row_vector_array, nil_index_list(), + pow(d_int, d_row_vector_array), + "assigning variable transformed_data_row_vector_array"); + current_statement__ = 464; + assign(transformed_data_row_vector_array, nil_index_list(), + pow(d_real, d_row_vector_array), + "assigning variable transformed_data_row_vector_array"); + current_statement__ = 465; + assign(transformed_data_row_vector_array_2d, nil_index_list(), + pow(d_int, d_row_vector_array_2d), + "assigning variable transformed_data_row_vector_array_2d"); + current_statement__ = 466; + assign(transformed_data_row_vector_array_2d, nil_index_list(), + pow(d_real, d_row_vector_array_2d), + "assigning variable transformed_data_row_vector_array_2d"); + current_statement__ = 467; + assign(transformed_data_row_vector_array_3d, nil_index_list(), + pow(d_int, d_row_vector_array_3d), + "assigning variable transformed_data_row_vector_array_3d"); + current_statement__ = 468; + assign(transformed_data_row_vector_array_3d, nil_index_list(), + pow(d_real, d_row_vector_array_3d), + "assigning variable transformed_data_row_vector_array_3d"); + current_statement__ = 469; + assign(transformed_data_row_vector, nil_index_list(), + pow(d_row_vector, d_row_vector), + "assigning variable transformed_data_row_vector"); + current_statement__ = 470; + assign(transformed_data_row_vector_array, nil_index_list(), + pow(d_row_vector_array, d_row_vector_array), + "assigning variable transformed_data_row_vector_array"); + current_statement__ = 471; + assign(transformed_data_row_vector_array_2d, nil_index_list(), + pow(d_row_vector_array_2d, d_row_vector_array_2d), + "assigning variable transformed_data_row_vector_array_2d"); + current_statement__ = 472; + assign(transformed_data_row_vector_array_3d, nil_index_list(), + pow(d_row_vector_array_3d, d_row_vector_array_3d), + "assigning variable transformed_data_row_vector_array_3d"); + current_statement__ = 473; + assign(transformed_data_matrix, nil_index_list(), pow(d_matrix, d_int), + "assigning variable transformed_data_matrix"); + current_statement__ = 474; + assign(transformed_data_matrix, nil_index_list(), + pow(d_matrix, d_real), "assigning variable transformed_data_matrix"); + current_statement__ = 475; + assign(transformed_data_matrix_array, nil_index_list(), + pow(d_matrix_array, d_int), + "assigning variable transformed_data_matrix_array"); + current_statement__ = 476; + assign(transformed_data_matrix_array, nil_index_list(), + pow(d_matrix_array, d_real), + "assigning variable transformed_data_matrix_array"); + current_statement__ = 477; + assign(transformed_data_matrix_array_2d, nil_index_list(), + pow(d_matrix_array_2d, d_int), + "assigning variable transformed_data_matrix_array_2d"); + current_statement__ = 478; + assign(transformed_data_matrix_array_2d, nil_index_list(), + pow(d_matrix_array_2d, d_real), + "assigning variable transformed_data_matrix_array_2d"); + current_statement__ = 479; + assign(transformed_data_matrix_array_3d, nil_index_list(), + pow(d_matrix_array_3d, d_int), + "assigning variable transformed_data_matrix_array_3d"); + current_statement__ = 480; + assign(transformed_data_matrix_array_3d, nil_index_list(), + pow(d_matrix_array_3d, d_real), + "assigning variable transformed_data_matrix_array_3d"); + current_statement__ = 481; + assign(transformed_data_matrix, nil_index_list(), pow(d_int, d_matrix), + "assigning variable transformed_data_matrix"); + current_statement__ = 482; + assign(transformed_data_matrix, nil_index_list(), + pow(d_real, d_matrix), "assigning variable transformed_data_matrix"); + current_statement__ = 483; + assign(transformed_data_matrix_array, nil_index_list(), + pow(d_int, d_matrix_array), + "assigning variable transformed_data_matrix_array"); + current_statement__ = 484; + assign(transformed_data_matrix_array, nil_index_list(), + pow(d_real, d_matrix_array), + "assigning variable transformed_data_matrix_array"); + current_statement__ = 485; + assign(transformed_data_matrix_array_2d, nil_index_list(), + pow(d_int, d_matrix_array_2d), + "assigning variable transformed_data_matrix_array_2d"); + current_statement__ = 486; + assign(transformed_data_matrix_array_2d, nil_index_list(), + pow(d_real, d_matrix_array_2d), + "assigning variable transformed_data_matrix_array_2d"); + current_statement__ = 487; + assign(transformed_data_matrix_array_3d, nil_index_list(), + pow(d_int, d_matrix_array_3d), + "assigning variable transformed_data_matrix_array_3d"); + current_statement__ = 488; + assign(transformed_data_matrix_array_3d, nil_index_list(), + pow(d_real, d_matrix_array_3d), + "assigning variable transformed_data_matrix_array_3d"); + current_statement__ = 489; + assign(transformed_data_matrix, nil_index_list(), + pow(d_matrix, d_matrix), "assigning variable transformed_data_matrix"); + current_statement__ = 490; + assign(transformed_data_matrix_array, nil_index_list(), + pow(d_matrix_array, d_matrix_array), + "assigning variable transformed_data_matrix_array"); + current_statement__ = 491; + assign(transformed_data_matrix_array_2d, nil_index_list(), + pow(d_matrix_array_2d, d_matrix_array_2d), + "assigning variable transformed_data_matrix_array_2d"); + current_statement__ = 492; + assign(transformed_data_matrix_array_3d, nil_index_list(), + pow(d_matrix_array_3d, d_matrix_array_3d), + "assigning variable transformed_data_matrix_array_3d"); + current_statement__ = 291; for (int sym1__ = 1; sym1__ <= 4; ++sym1__) { - current_statement__ = 240; + current_statement__ = 291; for (int sym2__ = 1; sym2__ <= 5; ++sym2__) { - current_statement__ = 240; + current_statement__ = 291; for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { - current_statement__ = 240; + current_statement__ = 291; for (int sym4__ = 1; sym4__ <= 3; ++sym4__) { - current_statement__ = 240; - current_statement__ = 240; + current_statement__ = 291; + current_statement__ = 291; check_greater_or_equal(function__, "td_ar_mat[sym1__, sym2__, sym3__, sym4__]", rvalue(td_ar_mat, @@ -4965,16 +6240,16 @@ class mother_model final : public model_base_crtp { cons_list(index_uni(sym4__), nil_index_list())))), "td_ar_mat"), 0);}}}} - current_statement__ = 240; + current_statement__ = 291; for (int sym1__ = 1; sym1__ <= 4; ++sym1__) { - current_statement__ = 240; + current_statement__ = 291; for (int sym2__ = 1; sym2__ <= 5; ++sym2__) { - current_statement__ = 240; + current_statement__ = 291; for (int sym3__ = 1; sym3__ <= 2; ++sym3__) { - current_statement__ = 240; + current_statement__ = 291; for (int sym4__ = 1; sym4__ <= 3; ++sym4__) { - current_statement__ = 240; - current_statement__ = 240; + current_statement__ = 291; + current_statement__ = 291; check_less_or_equal(function__, "td_ar_mat[sym1__, sym2__, sym3__, sym4__]", rvalue(td_ar_mat, @@ -4984,200 +6259,200 @@ class mother_model final : public model_base_crtp { cons_list(index_uni(sym4__), nil_index_list())))), "td_ar_mat"), 1);}}}} - current_statement__ = 242; - current_statement__ = 242; + current_statement__ = 293; + current_statement__ = 293; check_simplex(function__, "td_simplex", td_simplex); - current_statement__ = 245; + current_statement__ = 296; for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - current_statement__ = 245; - current_statement__ = 245; + current_statement__ = 296; + current_statement__ = 296; check_simplex(function__, "td_1d_simplex[sym1__]", td_1d_simplex[(sym1__ - 1)]);} - current_statement__ = 250; + current_statement__ = 301; for (int sym1__ = 1; sym1__ <= N; ++sym1__) { - current_statement__ = 250; + current_statement__ = 301; for (int sym2__ = 1; sym2__ <= M; ++sym2__) { - current_statement__ = 250; + current_statement__ = 301; for (int sym3__ = 1; sym3__ <= K; ++sym3__) { - current_statement__ = 250; - current_statement__ = 250; + current_statement__ = 301; + current_statement__ = 301; check_simplex(function__, "td_3d_simplex[sym1__, sym2__, sym3__]", td_3d_simplex[(sym1__ - 1)][(sym2__ - 1)][(sym3__ - 1)]);}}} - current_statement__ = 251; - current_statement__ = 251; + current_statement__ = 302; + current_statement__ = 302; check_cholesky_factor(function__, "td_cfcov_54", td_cfcov_54); - current_statement__ = 252; - current_statement__ = 252; + current_statement__ = 303; + current_statement__ = 303; check_cholesky_factor(function__, "td_cfcov_33", td_cfcov_33); - current_statement__ = 304; + current_statement__ = 493; validate_non_negative_index("p_real_1d_ar", "N", N); - current_statement__ = 305; + current_statement__ = 494; validate_non_negative_index("p_real_3d_ar", "N", N); - current_statement__ = 306; + current_statement__ = 495; validate_non_negative_index("p_real_3d_ar", "M", M); - current_statement__ = 307; + current_statement__ = 496; validate_non_negative_index("p_real_3d_ar", "K", K); - current_statement__ = 308; + current_statement__ = 497; validate_non_negative_index("p_vec", "N", N); - current_statement__ = 309; + current_statement__ = 498; validate_non_negative_index("p_1d_vec", "N", N); - current_statement__ = 310; + current_statement__ = 499; validate_non_negative_index("p_1d_vec", "N", N); - current_statement__ = 311; + current_statement__ = 500; validate_non_negative_index("p_3d_vec", "N", N); - current_statement__ = 312; + current_statement__ = 501; validate_non_negative_index("p_3d_vec", "M", M); - current_statement__ = 313; + current_statement__ = 502; validate_non_negative_index("p_3d_vec", "K", K); - current_statement__ = 314; + current_statement__ = 503; validate_non_negative_index("p_3d_vec", "N", N); - current_statement__ = 315; + current_statement__ = 504; validate_non_negative_index("p_row_vec", "N", N); - current_statement__ = 316; + current_statement__ = 505; validate_non_negative_index("p_1d_row_vec", "N", N); - current_statement__ = 317; + current_statement__ = 506; validate_non_negative_index("p_1d_row_vec", "N", N); - current_statement__ = 318; + current_statement__ = 507; validate_non_negative_index("p_3d_row_vec", "N", N); - current_statement__ = 319; + current_statement__ = 508; validate_non_negative_index("p_3d_row_vec", "M", M); - current_statement__ = 320; + current_statement__ = 509; validate_non_negative_index("p_3d_row_vec", "K", K); - current_statement__ = 321; + current_statement__ = 510; validate_non_negative_index("p_3d_row_vec", "N", N); - current_statement__ = 322; + current_statement__ = 511; validate_positive_index("p_simplex", "N", N); - current_statement__ = 323; + current_statement__ = 512; validate_non_negative_index("p_1d_simplex", "N", N); - current_statement__ = 324; + current_statement__ = 513; validate_positive_index("p_1d_simplex", "N", N); - current_statement__ = 325; + current_statement__ = 514; validate_non_negative_index("p_3d_simplex", "N", N); - current_statement__ = 326; + current_statement__ = 515; validate_non_negative_index("p_3d_simplex", "M", M); - current_statement__ = 327; + current_statement__ = 516; validate_non_negative_index("p_3d_simplex", "K", K); - current_statement__ = 328; + current_statement__ = 517; validate_positive_index("p_3d_simplex", "N", N); - current_statement__ = 329; + current_statement__ = 518; check_greater_or_equal("cholesky_factor_cov p_cfcov_54", "num rows (must be greater or equal to num cols)", 5, 4); - current_statement__ = 330; + current_statement__ = 519; check_greater_or_equal("cholesky_factor_cov p_cfcov_33", "num rows (must be greater or equal to num cols)", 3, 3); - current_statement__ = 331; + current_statement__ = 520; validate_non_negative_index("p_cfcov_33_ar", "K", K); - current_statement__ = 332; + current_statement__ = 521; check_greater_or_equal("cholesky_factor_cov p_cfcov_33_ar", "num rows (must be greater or equal to num cols)", 3, 3); - current_statement__ = 333; + current_statement__ = 522; validate_non_negative_index("tp_real_1d_ar", "N", N); - current_statement__ = 334; + current_statement__ = 523; validate_non_negative_index("tp_real_3d_ar", "N", N); - current_statement__ = 335; + current_statement__ = 524; validate_non_negative_index("tp_real_3d_ar", "M", M); - current_statement__ = 336; + current_statement__ = 525; validate_non_negative_index("tp_real_3d_ar", "K", K); - current_statement__ = 337; + current_statement__ = 526; validate_non_negative_index("tp_vec", "N", N); - current_statement__ = 338; + current_statement__ = 527; validate_non_negative_index("tp_1d_vec", "N", N); - current_statement__ = 339; + current_statement__ = 528; validate_non_negative_index("tp_1d_vec", "N", N); - current_statement__ = 340; + current_statement__ = 529; validate_non_negative_index("tp_3d_vec", "N", N); - current_statement__ = 341; + current_statement__ = 530; validate_non_negative_index("tp_3d_vec", "M", M); - current_statement__ = 342; + current_statement__ = 531; validate_non_negative_index("tp_3d_vec", "K", K); - current_statement__ = 343; + current_statement__ = 532; validate_non_negative_index("tp_3d_vec", "N", N); - current_statement__ = 344; + current_statement__ = 533; validate_non_negative_index("tp_row_vec", "N", N); - current_statement__ = 345; + current_statement__ = 534; validate_non_negative_index("tp_1d_row_vec", "N", N); - current_statement__ = 346; + current_statement__ = 535; validate_non_negative_index("tp_1d_row_vec", "N", N); - current_statement__ = 347; + current_statement__ = 536; validate_non_negative_index("tp_3d_row_vec", "N", N); - current_statement__ = 348; + current_statement__ = 537; validate_non_negative_index("tp_3d_row_vec", "M", M); - current_statement__ = 349; + current_statement__ = 538; validate_non_negative_index("tp_3d_row_vec", "K", K); - current_statement__ = 350; + current_statement__ = 539; validate_non_negative_index("tp_3d_row_vec", "N", N); - current_statement__ = 351; + current_statement__ = 540; validate_non_negative_index("tp_simplex", "N", N); - current_statement__ = 352; + current_statement__ = 541; validate_non_negative_index("tp_1d_simplex", "N", N); - current_statement__ = 353; + current_statement__ = 542; validate_non_negative_index("tp_1d_simplex", "N", N); - current_statement__ = 354; + current_statement__ = 543; validate_non_negative_index("tp_3d_simplex", "N", N); - current_statement__ = 355; + current_statement__ = 544; validate_non_negative_index("tp_3d_simplex", "M", M); - current_statement__ = 356; + current_statement__ = 545; validate_non_negative_index("tp_3d_simplex", "K", K); - current_statement__ = 357; + current_statement__ = 546; validate_non_negative_index("tp_3d_simplex", "N", N); - current_statement__ = 358; + current_statement__ = 547; validate_non_negative_index("tp_cfcov_33_ar", "K", K); - current_statement__ = 359; + current_statement__ = 548; validate_non_negative_index("gq_real_1d_ar", "N", N); - current_statement__ = 360; + current_statement__ = 549; validate_non_negative_index("gq_real_3d_ar", "N", N); - current_statement__ = 361; + current_statement__ = 550; validate_non_negative_index("gq_real_3d_ar", "M", M); - current_statement__ = 362; + current_statement__ = 551; validate_non_negative_index("gq_real_3d_ar", "K", K); - current_statement__ = 363; + current_statement__ = 552; validate_non_negative_index("gq_vec", "N", N); - current_statement__ = 364; + current_statement__ = 553; validate_non_negative_index("gq_1d_vec", "N", N); - current_statement__ = 365; + current_statement__ = 554; validate_non_negative_index("gq_1d_vec", "N", N); - current_statement__ = 366; + current_statement__ = 555; validate_non_negative_index("gq_3d_vec", "N", N); - current_statement__ = 367; + current_statement__ = 556; validate_non_negative_index("gq_3d_vec", "M", M); - current_statement__ = 368; + current_statement__ = 557; validate_non_negative_index("gq_3d_vec", "K", K); - current_statement__ = 369; + current_statement__ = 558; validate_non_negative_index("gq_3d_vec", "N", N); - current_statement__ = 370; + current_statement__ = 559; validate_non_negative_index("gq_row_vec", "N", N); - current_statement__ = 371; + current_statement__ = 560; validate_non_negative_index("gq_1d_row_vec", "N", N); - current_statement__ = 372; + current_statement__ = 561; validate_non_negative_index("gq_1d_row_vec", "N", N); - current_statement__ = 373; + current_statement__ = 562; validate_non_negative_index("gq_3d_row_vec", "N", N); - current_statement__ = 374; + current_statement__ = 563; validate_non_negative_index("gq_3d_row_vec", "M", M); - current_statement__ = 375; + current_statement__ = 564; validate_non_negative_index("gq_3d_row_vec", "K", K); - current_statement__ = 376; + current_statement__ = 565; validate_non_negative_index("gq_3d_row_vec", "N", N); - current_statement__ = 377; + current_statement__ = 566; validate_non_negative_index("gq_simplex", "N", N); - current_statement__ = 378; + current_statement__ = 567; validate_non_negative_index("gq_1d_simplex", "N", N); - current_statement__ = 379; + current_statement__ = 568; validate_non_negative_index("gq_1d_simplex", "N", N); - current_statement__ = 380; + current_statement__ = 569; validate_non_negative_index("gq_3d_simplex", "N", N); - current_statement__ = 381; + current_statement__ = 570; validate_non_negative_index("gq_3d_simplex", "M", M); - current_statement__ = 382; + current_statement__ = 571; validate_non_negative_index("gq_3d_simplex", "K", K); - current_statement__ = 383; + current_statement__ = 572; validate_non_negative_index("gq_3d_simplex", "N", N); - current_statement__ = 384; + current_statement__ = 573; validate_non_negative_index("gq_cfcov_33_ar", "K", K); } catch (const std::exception& e) { stan::lang::rethrow_located(e, locations_array__[current_statement__]); diff --git a/test/integration/good/code-gen/mir.expected b/test/integration/good/code-gen/mir.expected index 6e1c259cd3..ace1fb5847 100644 --- a/test/integration/good/code-gen/mir.expected +++ b/test/integration/good/code-gen/mir.expected @@ -2317,6 +2317,160 @@ ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_int SInt) + (d_int_array + (SArray SInt + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_int_array_2d + (SArray + (SArray SInt + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_int_array_3d + (SArray + (SArray + (SArray SInt + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_real SReal) + (d_real_array + (SArray SReal + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_real_array_2d + (SArray + (SArray SReal + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_real_array_3d + (SArray + (SArray + (SArray SReal + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_matrix + (SMatrix + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_matrix_array + (SArray + (SMatrix + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_matrix_array_2d + (SArray + (SArray + (SMatrix + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_matrix_array_3d + (SArray + (SArray + (SArray + (SMatrix + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_vector + (SVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_vector_array + (SArray + (SVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_vector_array_2d + (SArray + (SArray + (SVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_vector_array_3d + (SArray + (SArray + (SArray + (SVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_row_vector + (SRowVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_row_vector_array + (SArray + (SRowVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_row_vector_array_2d + (SArray + (SArray + (SRowVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (d_row_vector_array_3d + (SArray + (SArray + (SArray + (SRowVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))))) (prepare_data (((pattern @@ -3368,327 +3522,836 @@ (meta ))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id td_int) (decl_type (Sized SInt)))) + (Decl (decl_adtype DataOnly) (decl_id d_int) (decl_type (Sized SInt)))) (meta )) ((pattern (NRFunApp CompilerInternal FnValidateSize__ - (((pattern (Lit Str td_1d)) + (((pattern (Lit Str d_int_array)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str N)) + ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id td_1d) + (Decl (decl_adtype DataOnly) (decl_id d_int_array) (decl_type (Sized (SArray SInt - ((pattern (Var N)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern (NRFunApp CompilerInternal FnValidateSize__ - (((pattern (Lit Str td_1dk)) + (((pattern (Lit Str d_int_array_2d)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str M)) + ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id td_1dk) + (Decl (decl_adtype DataOnly) (decl_id d_int_array_2d) (decl_type (Sized - (SArray SInt - ((pattern (Var M)) + (SArray + (SArray SInt + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Assignment (td_1dk (UArray UInt) ()) - ((pattern - (FunApp StanLib rep_array - (((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) - (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_int_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id td_a) (decl_type (Sized SInt)))) + (Decl (decl_adtype DataOnly) (decl_id d_int_array_3d) + (decl_type + (Sized + (SArray + (SArray + (SArray SInt + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Assignment (td_a UInt ()) - ((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (Decl (decl_adtype DataOnly) (decl_id d_real) (decl_type (Sized SReal)))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id td_b) (decl_type (Sized SReal)))) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_real_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Assignment (td_b UReal ()) - ((pattern - (FunApp StanLib Times__ - (((pattern (Var N)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var J)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (Decl (decl_adtype DataOnly) (decl_id d_real_array) + (decl_type + (Sized + (SArray SReal + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id td_c) (decl_type (Sized SReal)))) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_real_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Assignment (td_c UReal ()) - ((pattern - (FunApp UserDefined foo_bar1 - (((pattern (Var td_b)) - (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) - (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (Decl (decl_adtype DataOnly) (decl_id d_real_array_2d) + (decl_type + (Sized + (SArray + (SArray SReal + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id td_ar_mat) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_real_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_real_array_3d) (decl_type (Sized (SArray (SArray - (SMatrix - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + (SArray SReal ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 5)) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 4)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern (NRFunApp CompilerInternal FnValidateSize__ - (((pattern (Lit Str td_simplex)) + (((pattern (Lit Str d_matrix)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str N)) + ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id td_simplex) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_matrix)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_matrix) (decl_type (Sized - (SVector - ((pattern (Var N)) + (SMatrix + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern (NRFunApp CompilerInternal FnValidateSize__ - (((pattern (Lit Str td_1d_simplex)) + (((pattern (Lit Str d_matrix_array)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str N)) + ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern (NRFunApp CompilerInternal FnValidateSize__ - (((pattern (Lit Str td_1d_simplex)) + (((pattern (Lit Str d_matrix_array)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str N)) + ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id td_1d_simplex) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_matrix_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_matrix_array) (decl_type (Sized (SArray - (SVector - ((pattern (Var N)) + (SMatrix + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Var N)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern (NRFunApp CompilerInternal FnValidateSize__ - (((pattern (Lit Str td_3d_simplex)) + (((pattern (Lit Str d_matrix_array_2d)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str N)) + ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern (NRFunApp CompilerInternal FnValidateSize__ - (((pattern (Lit Str td_3d_simplex)) + (((pattern (Lit Str d_matrix_array_2d)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str M)) + ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var M)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern (NRFunApp CompilerInternal FnValidateSize__ - (((pattern (Lit Str td_3d_simplex)) + (((pattern (Lit Str d_matrix_array_2d)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str K)) + ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var K)) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_matrix_array_2d) + (decl_type + (Sized + (SArray + (SArray + (SMatrix + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_matrix_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern (NRFunApp CompilerInternal FnValidateSize__ - (((pattern (Lit Str td_3d_simplex)) + (((pattern (Lit Str d_matrix_array_3d)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Str N)) + ((pattern (Lit Str d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Var N)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id td_3d_simplex) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_matrix_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_matrix_array_3d) (decl_type (Sized (SArray (SArray (SArray - (SVector - ((pattern (Var N)) + (SMatrix + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Var K)) + ((pattern (Lit Int 3)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Var M)) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Var N)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id td_cfcov_54) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_vector)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_vector) (decl_type (Sized - (SMatrix - ((pattern (Lit Int 5)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 5)) + (SVector + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id td_cfcov_33) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_vector_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_vector_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_vector_array) (decl_type (Sized - (SMatrix - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 3)) + (SArray + (SVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id x) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_vector_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_vector_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_vector_array_2d) (decl_type (Sized - (SVector - ((pattern (Lit Int 2)) + (SArray + (SArray + (SVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id y) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_vector_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_vector_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_vector_array_3d) (decl_type (Sized - (SVector - ((pattern (Lit Int 2)) + (SArray + (SArray + (SArray + (SVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id dat) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_row_vector)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_row_vector) (decl_type (Sized - (SArray SReal - ((pattern (Lit Int 0)) + (SRowVector + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id dat_int) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_row_vector_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_row_vector_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_row_vector_array) (decl_type (Sized - (SArray SInt - ((pattern (Lit Int 0)) + (SArray + (SRowVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id x_r) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_row_vector_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_row_vector_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_row_vector_array_2d) (decl_type (Sized (SArray - (SArray SReal - ((pattern (Lit Int 0)) + (SArray + (SRowVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 0)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Decl (decl_adtype DataOnly) (decl_id x_i) + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_row_vector_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str d_row_vector_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id d_row_vector_array_3d) (decl_type (Sized (SArray - (SArray SInt - ((pattern (Lit Int 0)) + (SArray + (SArray + (SRowVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - ((pattern (Lit Int 0)) + ((pattern (Var d_int)) (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) (meta )) ((pattern - (Assignment (td_int UInt ()) + (Decl (decl_adtype DataOnly) (decl_id td_int) (decl_type (Sized SInt)))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str td_1d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id td_1d) + (decl_type + (Sized + (SArray SInt + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str td_1dk)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id td_1dk) + (decl_type + (Sized + (SArray SInt + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (Assignment (td_1dk (UArray UInt) ()) ((pattern - (EOr - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (FunApp StanLib rep_array + (((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id td_a) (decl_type (Sized SInt)))) + (meta )) + ((pattern + (Assignment (td_a UInt ()) + ((pattern (Var N)) (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (Assignment (td_int UInt ()) + (Decl (decl_adtype DataOnly) (decl_id td_b) (decl_type (Sized SReal)))) + (meta )) + ((pattern + (Assignment (td_b UReal ()) ((pattern - (EAnd - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) - (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (FunApp StanLib Times__ + (((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var J)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) (meta )) ((pattern - (For (loopvar i) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 2)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar j) - (lower - ((pattern (Lit Int 1)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 3)) - (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern - (Block - (((pattern - (For (loopvar m) - (lower - ((pattern (Lit Int 1)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (upper - ((pattern (Lit Int 4)) - (meta - ((type_ UInt) (loc ) (adlevel DataOnly))))) - (body - ((pattern + (Decl (decl_adtype DataOnly) (decl_id td_c) (decl_type (Sized SReal)))) + (meta )) + ((pattern + (Assignment (td_c UReal ()) + ((pattern + (FunApp UserDefined foo_bar1 + (((pattern (Var td_b)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id td_ar_mat) + (decl_type + (Sized + (SArray + (SArray + (SMatrix + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 4)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str td_simplex)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id td_simplex) + (decl_type + (Sized + (SVector + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str td_1d_simplex)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str td_1d_simplex)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id td_1d_simplex) + (decl_type + (Sized + (SArray + (SVector + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str td_3d_simplex)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str td_3d_simplex)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str td_3d_simplex)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str td_3d_simplex)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id td_3d_simplex) + (decl_type + (Sized + (SArray + (SArray + (SArray + (SVector + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var K)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var M)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var N)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id td_cfcov_54) + (decl_type + (Sized + (SMatrix + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 5)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id td_cfcov_33) + (decl_type + (Sized + (SMatrix + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id x) + (decl_type + (Sized + (SVector + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id y) + (decl_type + (Sized + (SVector + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id dat) + (decl_type + (Sized + (SArray SReal + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id dat_int) + (decl_type + (Sized + (SArray SInt + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id x_r) + (decl_type + (Sized + (SArray + (SArray SReal + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id x_i) + (decl_type + (Sized + (SArray + (SArray SInt + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 0)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (Assignment (td_int UInt ()) + ((pattern + (EOr + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (td_int UInt ()) + ((pattern + (EAnd + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (For (loopvar i) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar j) + (lower + ((pattern (Lit Int 1)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern + (Block + (((pattern + (For (loopvar m) + (lower + ((pattern (Lit Int 1)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (upper + ((pattern (Lit Int 4)) + (meta + ((type_ UInt) (loc ) (adlevel DataOnly))))) + (body + ((pattern (Block (((pattern (For (loopvar n) @@ -4231,6 +4894,1668 @@ (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))))) (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_real) + (decl_type (Sized SReal)))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_real_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_real_array) + (decl_type + (Sized + (SArray SReal + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_real_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_real_array_2d) + (decl_type + (Sized + (SArray + (SArray SReal + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_real_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_real_array_3d) + (decl_type + (Sized + (SArray + (SArray + (SArray SReal + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_matrix)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_matrix)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_matrix) + (decl_type + (Sized + (SMatrix + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_matrix_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_matrix_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_matrix_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_matrix_array) + (decl_type + (Sized + (SArray + (SMatrix + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_matrix_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_matrix_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_matrix_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_matrix_array_2d) + (decl_type + (Sized + (SArray + (SArray + (SMatrix + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_matrix_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_matrix_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_matrix_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_matrix_array_3d) + (decl_type + (Sized + (SArray + (SArray + (SArray + (SMatrix + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_vector)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_vector) + (decl_type + (Sized + (SVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_vector_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_vector_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_vector_array) + (decl_type + (Sized + (SArray + (SVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_vector_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_vector_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_vector_array_2d) + (decl_type + (Sized + (SArray + (SArray + (SVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_vector_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_vector_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_vector_array_3d) + (decl_type + (Sized + (SArray + (SArray + (SArray + (SVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_row_vector)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_row_vector) + (decl_type + (Sized + (SRowVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_row_vector_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_row_vector_array)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) (decl_id transformed_data_row_vector_array) + (decl_type + (Sized + (SArray + (SRowVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_row_vector_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_row_vector_array_2d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id transformed_data_row_vector_array_2d) + (decl_type + (Sized + (SArray + (SArray + (SRowVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_row_vector_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (NRFunApp CompilerInternal FnValidateSize__ + (((pattern (Lit Str transformed_data_row_vector_array_3d)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Lit Str d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta )) + ((pattern + (Decl (decl_adtype DataOnly) + (decl_id transformed_data_row_vector_array_3d) + (decl_type + (Sized + (SArray + (SArray + (SArray + (SRowVector + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 3)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Lit Int 2)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))))) + (meta )) + ((pattern + (Assignment (transformed_data_real UReal ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real UReal ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real UReal ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real UReal ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array (UArray UReal) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int_array)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array (UArray UReal) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int_array)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array_2d (UArray (UArray UReal)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int_array_2d)) + (meta + ((type_ (UArray (UArray UInt))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array_2d (UArray (UArray UReal)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int_array_2d)) + (meta + ((type_ (UArray (UArray UInt))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_real_array_3d (UArray (UArray (UArray UReal))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UInt)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_real_array_3d (UArray (UArray (UArray UReal))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UInt)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array (UArray UReal) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int_array)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array (UArray UReal) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int_array)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array_2d (UArray (UArray UReal)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int_array_2d)) + (meta + ((type_ (UArray (UArray UInt))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array_2d (UArray (UArray UReal)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int_array_2d)) + (meta + ((type_ (UArray (UArray UInt))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_real_array_3d (UArray (UArray (UArray UReal))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UInt)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_real_array_3d (UArray (UArray (UArray UReal))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UInt)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array (UArray UReal) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real_array)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array (UArray UReal) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real_array)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array_2d (UArray (UArray UReal)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real_array_2d)) + (meta + ((type_ (UArray (UArray UReal))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array_2d (UArray (UArray UReal)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real_array_2d)) + (meta + ((type_ (UArray (UArray UReal))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_real_array_3d (UArray (UArray (UArray UReal))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_real_array_3d (UArray (UArray (UArray UReal))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array (UArray UReal) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real_array)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array (UArray UReal) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real_array)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array_2d (UArray (UArray UReal)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real_array_2d)) + (meta + ((type_ (UArray (UArray UReal))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array_2d (UArray (UArray UReal)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real_array_2d)) + (meta + ((type_ (UArray (UArray UReal))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_real_array_3d (UArray (UArray (UArray UReal))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_real_array_3d (UArray (UArray (UArray UReal))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array (UArray UReal) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int_array)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int_array)) + (meta ((type_ (UArray UInt)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array (UArray UReal) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real_array)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real_array)) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UReal)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array_2d (UArray (UArray UReal)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int_array_2d)) + (meta + ((type_ (UArray (UArray UInt))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_int_array_2d)) + (meta + ((type_ (UArray (UArray UInt))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_real_array_2d (UArray (UArray UReal)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real_array_2d)) + (meta + ((type_ (UArray (UArray UReal))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_real_array_2d)) + (meta + ((type_ (UArray (UArray UReal))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UReal))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_real_array_3d (UArray (UArray (UArray UReal))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UInt)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_int_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UInt)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_real_array_3d (UArray (UArray (UArray UReal))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_real_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UReal)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_vector UVector ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_vector)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_vector UVector ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_vector)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_vector_array (UArray UVector) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_vector_array)) + (meta + ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_vector_array (UArray UVector) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_vector_array)) + (meta + ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_vector_array_2d (UArray (UArray UVector)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_vector_array_2d)) + (meta + ((type_ (UArray (UArray UVector))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UVector))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_vector_array_2d (UArray (UArray UVector)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_vector_array_2d)) + (meta + ((type_ (UArray (UArray UVector))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UVector))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_vector_array_3d (UArray (UArray (UArray UVector))) + ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_vector_array_3d (UArray (UArray (UArray UVector))) + ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_vector UVector ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_vector)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_vector UVector ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_vector)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_vector_array (UArray UVector) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_vector_array)) + (meta + ((type_ (UArray UVector)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_vector_array (UArray UVector) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_vector_array)) + (meta + ((type_ (UArray UVector)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_vector_array_2d (UArray (UArray UVector)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_vector_array_2d)) + (meta + ((type_ (UArray (UArray UVector))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UVector))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_vector_array_2d (UArray (UArray UVector)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_vector_array_2d)) + (meta + ((type_ (UArray (UArray UVector))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UVector))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_vector_array_3d (UArray (UArray (UArray UVector))) + ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_vector_array_3d (UArray (UArray (UArray UVector))) + ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_vector UVector ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_vector)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_vector)) + (meta ((type_ UVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UVector) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_vector_array (UArray UVector) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_vector_array)) + (meta + ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_vector_array)) + (meta + ((type_ (UArray UVector)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UVector)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_vector_array_2d (UArray (UArray UVector)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_vector_array_2d)) + (meta + ((type_ (UArray (UArray UVector))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_vector_array_2d)) + (meta + ((type_ (UArray (UArray UVector))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UVector))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_vector_array_3d (UArray (UArray (UArray UVector))) + ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UVector)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_row_vector URowVector ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_row_vector)) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_row_vector URowVector ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_row_vector)) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_row_vector_array (UArray URowVector) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_row_vector_array)) + (meta + ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_row_vector_array (UArray URowVector) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_row_vector_array)) + (meta + ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_row_vector_array_2d (UArray (UArray URowVector)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_row_vector_array_2d)) + (meta + ((type_ (UArray (UArray URowVector))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray URowVector))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_row_vector_array_2d (UArray (UArray URowVector)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_row_vector_array_2d)) + (meta + ((type_ (UArray (UArray URowVector))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray URowVector))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_row_vector_array_3d + (UArray (UArray (UArray URowVector))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_row_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_row_vector_array_3d + (UArray (UArray (UArray URowVector))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_row_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_row_vector URowVector ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_row_vector)) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_row_vector URowVector ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_row_vector)) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_row_vector_array (UArray URowVector) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_row_vector_array)) + (meta + ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_row_vector_array (UArray URowVector) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_row_vector_array)) + (meta + ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_row_vector_array_2d (UArray (UArray URowVector)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_row_vector_array_2d)) + (meta + ((type_ (UArray (UArray URowVector))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray URowVector))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_row_vector_array_2d (UArray (UArray URowVector)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_row_vector_array_2d)) + (meta + ((type_ (UArray (UArray URowVector))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray URowVector))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_row_vector_array_3d + (UArray (UArray (UArray URowVector))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_row_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_row_vector_array_3d + (UArray (UArray (UArray URowVector))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_row_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_row_vector URowVector ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_row_vector)) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_row_vector)) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly))))))) + (meta ((type_ URowVector) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_row_vector_array (UArray URowVector) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_row_vector_array)) + (meta + ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_row_vector_array)) + (meta + ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray URowVector)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_row_vector_array_2d (UArray (UArray URowVector)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_row_vector_array_2d)) + (meta + ((type_ (UArray (UArray URowVector))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_row_vector_array_2d)) + (meta + ((type_ (UArray (UArray URowVector))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray URowVector))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_row_vector_array_3d + (UArray (UArray (UArray URowVector))) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_row_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_row_vector_array_3d)) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray URowVector)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_matrix UMatrix ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_matrix)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_matrix UMatrix ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_matrix)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_matrix_array (UArray UMatrix) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_matrix_array)) + (meta + ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_matrix_array (UArray UMatrix) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_matrix_array)) + (meta + ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_matrix_array_2d (UArray (UArray UMatrix)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_matrix_array_2d)) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_matrix_array_2d (UArray (UArray UMatrix)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_matrix_array_2d)) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_matrix_array_3d (UArray (UArray (UArray UMatrix))) + ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_matrix_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_matrix_array_3d (UArray (UArray (UArray UMatrix))) + ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_matrix_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_matrix UMatrix ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_matrix)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_matrix UMatrix ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_matrix)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_matrix_array (UArray UMatrix) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_matrix_array)) + (meta + ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_matrix_array (UArray UMatrix) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_matrix_array)) + (meta + ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_matrix_array_2d (UArray (UArray UMatrix)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_matrix_array_2d)) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_matrix_array_2d (UArray (UArray UMatrix)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_matrix_array_2d)) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_matrix_array_3d (UArray (UArray (UArray UMatrix))) + ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_int)) + (meta ((type_ UInt) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_matrix_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_matrix_array_3d (UArray (UArray (UArray UMatrix))) + ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_real)) + (meta ((type_ UReal) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_matrix_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) + (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_matrix UMatrix ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_matrix)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_matrix)) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly))))))) + (meta ((type_ UMatrix) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment (transformed_data_matrix_array (UArray UMatrix) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_matrix_array)) + (meta + ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly)))) + ((pattern (Var d_matrix_array)) + (meta + ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly))))))) + (meta ((type_ (UArray UMatrix)) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_matrix_array_2d (UArray (UArray UMatrix)) ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_matrix_array_2d)) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_matrix_array_2d)) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray UMatrix))) (loc ) (adlevel DataOnly)))))) + (meta )) + ((pattern + (Assignment + (transformed_data_matrix_array_3d (UArray (UArray (UArray UMatrix))) + ()) + ((pattern + (FunApp StanLib EltPow__ + (((pattern (Var d_matrix_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) + (adlevel DataOnly)))) + ((pattern (Var d_matrix_array_3d)) + (meta + ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) + (adlevel DataOnly))))))) + (meta + ((type_ (UArray (UArray (UArray UMatrix)))) (loc ) + (adlevel DataOnly)))))) + (meta )) ((pattern (For (loopvar sym1__) (lower diff --git a/test/integration/good/code-gen/mother.stan b/test/integration/good/code-gen/mother.stan index a2f901ae17..e419f51a1b 100644 --- a/test/integration/good/code-gen/mother.stan +++ b/test/integration/good/code-gen/mother.stan @@ -334,6 +334,26 @@ data { cholesky_factor_cov[5,4] d_cfcov_54; cholesky_factor_cov[3] d_cfcov_33; cholesky_factor_cov[3] d_cfcov_33_ar[K]; + int d_int; + int d_int_array[d_int]; + int d_int_array_2d[d_int,2]; + int d_int_array_3d[d_int,2,3]; + real d_real; + real d_real_array[d_int]; + real d_real_array_2d[d_int,2]; + real d_real_array_3d[d_int,2,3]; + matrix[d_int,d_int] d_matrix; + matrix[d_int,d_int] d_matrix_array[d_int]; + matrix[d_int,d_int] d_matrix_array_2d[d_int,2]; + matrix[d_int,d_int] d_matrix_array_3d[d_int,2,3]; + vector[d_int] d_vector; + vector[d_int] d_vector_array[d_int]; + vector[d_int] d_vector_array_2d[d_int,2]; + vector[d_int] d_vector_array_3d[d_int,2,3]; + row_vector[d_int] d_row_vector; + row_vector[d_int] d_row_vector_array[d_int]; + row_vector[d_int] d_row_vector_array_2d[d_int,2]; + row_vector[d_int] d_row_vector_array_3d[d_int,2,3]; } transformed data { int td_int; @@ -396,6 +416,131 @@ transformed data { arr_mul_ind[1,1:2] = {1, 1}; real x_mul_ind[2] = {1,2}; + + real transformed_data_real; + real transformed_data_real_array[d_int]; + real transformed_data_real_array_2d[d_int,2]; + real transformed_data_real_array_3d[d_int,2,3]; + matrix[d_int,d_int] transformed_data_matrix; + matrix[d_int,d_int] transformed_data_matrix_array[d_int]; + matrix[d_int,d_int] transformed_data_matrix_array_2d[d_int,2]; + matrix[d_int,d_int] transformed_data_matrix_array_3d[d_int,2,3]; + vector[d_int] transformed_data_vector; + vector[d_int] transformed_data_vector_array[d_int]; + vector[d_int] transformed_data_vector_array_2d[d_int,2]; + vector[d_int] transformed_data_vector_array_3d[d_int,2,3]; + row_vector[d_int] transformed_data_row_vector; + row_vector[d_int] transformed_data_row_vector_array[d_int]; + row_vector[d_int] transformed_data_row_vector_array_2d[d_int,2]; + row_vector[d_int] transformed_data_row_vector_array_3d[d_int,2,3]; + + transformed_data_real = d_int .^ d_int; + transformed_data_real = d_real .^ d_int; + transformed_data_real = d_int .^ d_real; + transformed_data_real = d_real .^ d_real; + transformed_data_real_array = d_int_array .^ d_int; + transformed_data_real_array = d_int_array .^ d_real; + transformed_data_real_array_2d = d_int_array_2d .^ d_int; + transformed_data_real_array_2d = d_int_array_2d .^ d_real; + transformed_data_real_array_3d = d_int_array_3d .^ d_int; + transformed_data_real_array_3d = d_int_array_3d .^ d_real; + + transformed_data_real_array = d_int .^ d_int_array; + transformed_data_real_array = d_real .^ d_int_array; + transformed_data_real_array_2d = d_int .^ d_int_array_2d; + transformed_data_real_array_2d = d_real .^ d_int_array_2d; + transformed_data_real_array_3d = d_int .^ d_int_array_3d; + transformed_data_real_array_3d = d_real .^ d_int_array_3d; + + transformed_data_real_array = d_int .^ d_real_array; + transformed_data_real_array = d_real .^ d_real_array; + transformed_data_real_array_2d = d_int .^ d_real_array_2d; + transformed_data_real_array_2d = d_real .^ d_real_array_2d; + transformed_data_real_array_3d = d_int .^ d_real_array_3d; + transformed_data_real_array_3d = d_real .^ d_real_array_3d; + + transformed_data_real_array = d_real_array .^ d_int; + transformed_data_real_array = d_real_array .^ d_real; + transformed_data_real_array_2d = d_real_array_2d .^ d_int; + transformed_data_real_array_2d = d_real_array_2d .^ d_real; + transformed_data_real_array_3d = d_real_array_3d .^ d_int; + transformed_data_real_array_3d = d_real_array_3d .^ d_real; + + transformed_data_real_array = d_int_array .^ d_int_array; + transformed_data_real_array = d_real_array .^ d_real_array; + transformed_data_real_array_2d = d_int_array_2d .^ d_int_array_2d; + transformed_data_real_array_2d = d_real_array_2d .^ d_real_array_2d; + transformed_data_real_array_3d = d_int_array_3d .^ d_int_array_3d; + transformed_data_real_array_3d = d_real_array_3d .^ d_real_array_3d; + + transformed_data_vector = d_vector .^ d_int; + transformed_data_vector = d_vector .^ d_real; + transformed_data_vector_array = d_vector_array .^ d_int; + transformed_data_vector_array = d_vector_array .^ d_real; + transformed_data_vector_array_2d = d_vector_array_2d .^ d_int; + transformed_data_vector_array_2d = d_vector_array_2d .^ d_real; + transformed_data_vector_array_3d = d_vector_array_3d .^ d_int; + transformed_data_vector_array_3d = d_vector_array_3d .^ d_real; + + transformed_data_vector = d_int .^ d_vector; + transformed_data_vector = d_real .^ d_vector; + transformed_data_vector_array = d_int .^ d_vector_array; + transformed_data_vector_array = d_real .^ d_vector_array; + transformed_data_vector_array_2d = d_int .^ d_vector_array_2d; + transformed_data_vector_array_2d = d_real .^ d_vector_array_2d; + transformed_data_vector_array_3d = d_int .^ d_vector_array_3d; + transformed_data_vector_array_3d = d_real .^ d_vector_array_3d; + + transformed_data_vector = d_vector .^ d_vector; + transformed_data_vector_array = d_vector_array .^ d_vector_array; + transformed_data_vector_array_2d = d_vector_array_2d .^ d_vector_array_2d; + transformed_data_vector_array_3d = d_vector_array_3d .^ d_vector_array_3d; + + transformed_data_row_vector = d_row_vector .^ d_int; + transformed_data_row_vector = d_row_vector .^ d_real; + transformed_data_row_vector_array = d_row_vector_array .^ d_int; + transformed_data_row_vector_array = d_row_vector_array .^ d_real; + transformed_data_row_vector_array_2d = d_row_vector_array_2d .^ d_int; + transformed_data_row_vector_array_2d = d_row_vector_array_2d .^ d_real; + transformed_data_row_vector_array_3d = d_row_vector_array_3d .^ d_int; + transformed_data_row_vector_array_3d = d_row_vector_array_3d .^ d_real; + + transformed_data_row_vector = d_int .^ d_row_vector; + transformed_data_row_vector = d_real .^ d_row_vector; + transformed_data_row_vector_array = d_int .^ d_row_vector_array; + transformed_data_row_vector_array = d_real .^ d_row_vector_array; + transformed_data_row_vector_array_2d = d_int .^ d_row_vector_array_2d; + transformed_data_row_vector_array_2d = d_real .^ d_row_vector_array_2d; + transformed_data_row_vector_array_3d = d_int .^ d_row_vector_array_3d; + transformed_data_row_vector_array_3d = d_real .^ d_row_vector_array_3d; + + transformed_data_row_vector = d_row_vector .^ d_row_vector; + transformed_data_row_vector_array = d_row_vector_array .^ d_row_vector_array; + transformed_data_row_vector_array_2d = d_row_vector_array_2d .^ d_row_vector_array_2d; + transformed_data_row_vector_array_3d = d_row_vector_array_3d .^ d_row_vector_array_3d; + + transformed_data_matrix = d_matrix .^ d_int; + transformed_data_matrix = d_matrix .^ d_real; + transformed_data_matrix_array = d_matrix_array .^ d_int; + transformed_data_matrix_array = d_matrix_array .^ d_real; + transformed_data_matrix_array_2d = d_matrix_array_2d .^ d_int; + transformed_data_matrix_array_2d = d_matrix_array_2d .^ d_real; + transformed_data_matrix_array_3d = d_matrix_array_3d .^ d_int; + transformed_data_matrix_array_3d = d_matrix_array_3d .^ d_real; + + transformed_data_matrix = d_int .^ d_matrix; + transformed_data_matrix = d_real .^ d_matrix; + transformed_data_matrix_array = d_int .^ d_matrix_array; + transformed_data_matrix_array = d_real .^ d_matrix_array; + transformed_data_matrix_array_2d = d_int .^ d_matrix_array_2d; + transformed_data_matrix_array_2d = d_real .^ d_matrix_array_2d; + transformed_data_matrix_array_3d = d_int .^ d_matrix_array_3d; + transformed_data_matrix_array_3d = d_real .^ d_matrix_array_3d; + + transformed_data_matrix = d_matrix .^ d_matrix; + transformed_data_matrix_array = d_matrix_array .^ d_matrix_array; + transformed_data_matrix_array_2d = d_matrix_array_2d .^ d_matrix_array_2d; + transformed_data_matrix_array_3d = d_matrix_array_3d .^ d_matrix_array_3d; } parameters { real p_real; From f55adde8133c4a2d155ff2bc5a80ab88407c2e04 Mon Sep 17 00:00:00 2001 From: Rok Cesnovar Date: Fri, 7 Aug 2020 15:54:03 +0200 Subject: [PATCH 6/6] format --- src/stan_math_backend/Expression_gen.ml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stan_math_backend/Expression_gen.ml b/src/stan_math_backend/Expression_gen.ml index 0c6dea3cae..e49f4e36db 100644 --- a/src/stan_math_backend/Expression_gen.ml +++ b/src/stan_math_backend/Expression_gen.ml @@ -219,8 +219,7 @@ and gen_operator_app = function fun ppf es -> pp_scalar_binary ppf "(%a@ /@ %a)" "elt_divide(@,%a,@ %a)" es | Pow -> fun ppf es -> pp_binary_f ppf "pow" es - | EltPow -> - fun ppf es -> pp_binary_f ppf "pow" es + | EltPow -> fun ppf es -> pp_binary_f ppf "pow" es | Equals -> fun ppf es -> pp_binary_f ppf "logical_eq" es | NEquals -> fun ppf es -> pp_binary_f ppf "logical_neq" es | Less -> fun ppf es -> pp_binary_f ppf "logical_lt" es