TRANSLATING MODEL '19c1c5943c1b2d98a9c111d35b7c32d6' FROM Stan CODE TO C++ CODE NOW. successful in parsing the Stan model '19c1c5943c1b2d98a9c111d35b7c32d6'. COMPILING THE C++ CODE FOR MODEL '19c1c5943c1b2d98a9c111d35b7c32d6' NOW. OS: x86_64, darwin15.6.0; rstan: 2.19.2; Rcpp: 1.0.2; inline: 0.3.15 >> setting environment variables: PKG_LIBS = -L'/Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/lib/' -lStanHeaders PKG_CPPFLAGS = -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/unsupported" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rstan/include" -DEIGEN_NO_DEBUG -DBOOST_DISABLE_ASSERTS >> Program source : 1 : 2 : // includes from the plugin 3 : // [[Rcpp::plugins(cpp14)]] 4 : 5 : // user includes 6 : #define STAN__SERVICES__COMMAND_HPP// Code generated by Stan version 2.19.1 7 : 8 : #include 9 : 10 : namespace model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6_namespace { 11 : 12 : using std::istream; 13 : using std::string; 14 : using std::stringstream; 15 : using std::vector; 16 : using stan::io::dump; 17 : using stan::math::lgamma; 18 : using stan::model::prob_grad; 19 : using namespace stan::math; 20 : 21 : static int current_statement_begin__; 22 : 23 : stan::io::program_reader prog_reader__() { 24 : stan::io::program_reader reader; 25 : reader.add_event(0, 0, "start", "model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6"); 26 : reader.add_event(35, 33, "end", "model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6"); 27 : return reader; 28 : } 29 : 30 : template 31 : typename boost::math::tools::promote_args::type 32 : gammaCDFderiv(const T0__& alpha, 33 : const T1__& x, std::ostream* pstream__); 34 : 35 : template 36 : typename boost::math::tools::promote_args::type 37 : lgammaJacLinf(const Eigen::Matrix& x, 38 : const T1__& alpha, 39 : const T2__& lambda, std::ostream* pstream__) { 40 : typedef typename boost::math::tools::promote_args::type local_scalar_t__; 41 : typedef local_scalar_t__ fun_return_scalar_t__; 42 : const static bool propto__ = true; 43 : (void) propto__; 44 : local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); 45 : (void) DUMMY_VAR__; // suppress unused var warning 46 : 47 : int current_statement_begin__ = -1; 48 : try { 49 : { 50 : current_statement_begin__ = 4; 51 : validate_non_negative_index("prob", "num_elements(x)", num_elements(x)); 52 : Eigen::Matrix prob(num_elements(x)); 53 : stan::math::initialize(prob, DUMMY_VAR__); 54 : stan::math::fill(prob, DUMMY_VAR__); 55 : 56 : current_statement_begin__ = 5; 57 : local_scalar_t__ my_target(DUMMY_VAR__); 58 : (void) my_target; // dummy to suppress unused var warning 59 : stan::math::initialize(my_target, DUMMY_VAR__); 60 : stan::math::fill(my_target, DUMMY_VAR__); 61 : stan::math::assign(my_target,0); 62 : 63 : current_statement_begin__ = 6; 64 : local_scalar_t__ num_elem(DUMMY_VAR__); 65 : (void) num_elem; // dummy to suppress unused var warning 66 : stan::math::initialize(num_elem, DUMMY_VAR__); 67 : stan::math::fill(num_elem, DUMMY_VAR__); 68 : stan::math::assign(num_elem,num_elements(x)); 69 : 70 : 71 : current_statement_begin__ = 7; 72 : for (int i = 2; i <= num_elements(x); ++i) { 73 : 74 : current_statement_begin__ = 8; 75 : for (int j = 1; j <= i; ++j) { 76 : { 77 : current_statement_begin__ = 9; 78 : local_scalar_t__ gam_1(DUMMY_VAR__); 79 : (void) gam_1; // dummy to suppress unused var warning 80 : stan::math::initialize(gam_1, DUMMY_VAR__); 81 : stan::math::fill(gam_1, DUMMY_VAR__); 82 : stan::math::assign(gam_1,gammaCDFderiv(alpha, (lambda * get_base1(x, j, "x", 1)), pstream__)); 83 : 84 : current_statement_begin__ = 10; 85 : local_scalar_t__ gam_2(DUMMY_VAR__); 86 : (void) gam_2; // dummy to suppress unused var warning 87 : stan::math::initialize(gam_2, DUMMY_VAR__); 88 : stan::math::fill(gam_2, DUMMY_VAR__); 89 : stan::math::assign(gam_2,gammaCDFderiv(alpha, (lambda * get_base1(x, i, "x", 1)), pstream__)); 90 : 91 : current_statement_begin__ = 11; 92 : local_scalar_t__ gamma_term(DUMMY_VAR__); 93 : (void) gamma_term; // dummy to suppress unused var warning 94 : stan::math::initialize(gamma_term, DUMMY_VAR__); 95 : stan::math::fill(gamma_term, DUMMY_VAR__); 96 : stan::math::assign(gamma_term,stan::math::tgamma((alpha + 1))); 97 : 98 : current_statement_begin__ = 12; 99 : local_scalar_t__ denom_1(DUMMY_VAR__); 100 : (void) denom_1; // dummy to suppress unused var warning 101 : stan::math::initialize(denom_1, DUMMY_VAR__); 102 : stan::math::fill(denom_1, DUMMY_VAR__); 103 : stan::math::assign(denom_1,(pow((lambda * get_base1(x, j, "x", 1)), alpha) * stan::math::exp((-(lambda) * get_base1(x, j, "x", 1))))); 104 : 105 : current_statement_begin__ = 13; 106 : local_scalar_t__ denom_2(DUMMY_VAR__); 107 : (void) denom_2; // dummy to suppress unused var warning 108 : stan::math::initialize(denom_2, DUMMY_VAR__); 109 : stan::math::fill(denom_2, DUMMY_VAR__); 110 : stan::math::assign(denom_2,(pow((lambda * get_base1(x, i, "x", 1)), alpha) * stan::math::exp((-(lambda) * get_base1(x, i, "x", 1))))); 111 : 112 : current_statement_begin__ = 14; 113 : local_scalar_t__ term_1(DUMMY_VAR__); 114 : (void) term_1; // dummy to suppress unused var warning 115 : stan::math::initialize(term_1, DUMMY_VAR__); 116 : stan::math::fill(term_1, DUMMY_VAR__); 117 : stan::math::assign(term_1,((gamma_term * gam_1) / denom_1)); 118 : 119 : current_statement_begin__ = 15; 120 : local_scalar_t__ term_2(DUMMY_VAR__); 121 : (void) term_2; // dummy to suppress unused var warning 122 : stan::math::initialize(term_2, DUMMY_VAR__); 123 : stan::math::fill(term_2, DUMMY_VAR__); 124 : stan::math::assign(term_2,((gamma_term * gam_2) / denom_2)); 125 : 126 : 127 : current_statement_begin__ = 16; 128 : stan::math::assign(my_target, (my_target + ((get_base1(x, i, "x", 1) * get_base1(x, j, "x", 1)) * stan::math::fabs((term_1 - term_2))))); 129 : } 130 : } 131 : } 132 : current_statement_begin__ = 19; 133 : return stan::math::promote_scalar(stan::math::log((pow((lambda * alpha), -(1)) * my_target))); 134 : } 135 : } catch (const std::exception& e) { 136 : stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__()); 137 : // Next line prevents compiler griping about no return 138 : throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); 139 : } 140 : } 141 : 142 : 143 : struct lgammaJacLinf_functor__ { 144 : template 145 : typename boost::math::tools::promote_args::type 146 : operator()(const Eigen::Matrix& x, 147 : const T1__& alpha, 148 : const T2__& lambda, std::ostream* pstream__) const { 149 : return lgammaJacLinf(x, alpha, lambda, pstream__); 150 : } 151 : }; 152 : 153 : 154 : #include "/Users/murph/Documents/Research/EAS_GFD/stan.hpp" 155 : class model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6 : public prob_grad { 156 : private: 157 : int N; 158 : vector_d y; 159 : public: 160 : model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6(stan::io::var_context& context__, 161 : std::ostream* pstream__ = 0) 162 : : prob_grad(0) { 163 : ctor_body(context__, 0, pstream__); 164 : } 165 : 166 : model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6(stan::io::var_context& context__, 167 : unsigned int random_seed__, 168 : std::ostream* pstream__ = 0) 169 : : prob_grad(0) { 170 : ctor_body(context__, random_seed__, pstream__); 171 : } 172 : 173 : void ctor_body(stan::io::var_context& context__, 174 : unsigned int random_seed__, 175 : std::ostream* pstream__) { 176 : typedef double local_scalar_t__; 177 : 178 : boost::ecuyer1988 base_rng__ = 179 : stan::services::util::create_rng(random_seed__, 0); 180 : (void) base_rng__; // suppress unused var warning 181 : 182 : current_statement_begin__ = -1; 183 : 184 : static const char* function__ = "model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6_namespace::model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6"; 185 : (void) function__; // dummy to suppress unused var warning 186 : size_t pos__; 187 : (void) pos__; // dummy to suppress unused var warning 188 : std::vector vals_i__; 189 : std::vector vals_r__; 190 : local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); 191 : (void) DUMMY_VAR__; // suppress unused var warning 192 : 193 : try { 194 : // initialize data block variables from context__ 195 : current_statement_begin__ = 23; 196 : context__.validate_dims("data initialization", "N", "int", context__.to_vec()); 197 : N = int(0); 198 : vals_i__ = context__.vals_i("N"); 199 : pos__ = 0; 200 : N = vals_i__[pos__++]; 201 : check_greater_or_equal(function__, "N", N, 1); 202 : 203 : current_statement_begin__ = 24; 204 : validate_non_negative_index("y", "N", N); 205 : context__.validate_dims("data initialization", "y", "vector_d", context__.to_vec(N)); 206 : y = Eigen::Matrix(N); 207 : vals_r__ = context__.vals_r("y"); 208 : pos__ = 0; 209 : size_t y_j_1_max__ = N; 210 : for (size_t j_1__ = 0; j_1__ < y_j_1_max__; ++j_1__) { 211 : y(j_1__) = vals_r__[pos__++]; 212 : } 213 : 214 : 215 : // initialize transformed data variables 216 : // execute transformed data statements 217 : 218 : // validate transformed data 219 : 220 : // validate, set parameter ranges 221 : num_params_r__ = 0U; 222 : param_ranges_i__.clear(); 223 : current_statement_begin__ = 27; 224 : num_params_r__ += 1; 225 : current_statement_begin__ = 28; 226 : num_params_r__ += 1; 227 : } catch (const std::exception& e) { 228 : stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__()); 229 : // Next line prevents compiler griping about no return 230 : throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); 231 : } 232 : } 233 : 234 : ~model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6() { } 235 : 236 : 237 : void transform_inits(const stan::io::var_context& context__, 238 : std::vector& params_i__, 239 : std::vector& params_r__, 240 : std::ostream* pstream__) const { 241 : typedef double local_scalar_t__; 242 : stan::io::writer writer__(params_r__, params_i__); 243 : size_t pos__; 244 : (void) pos__; // dummy call to supress warning 245 : std::vector vals_r__; 246 : std::vector vals_i__; 247 : 248 : current_statement_begin__ = 27; 249 : if (!(context__.contains_r("alpha"))) 250 : stan::lang::rethrow_located(std::runtime_error(std::string("Variable alpha missing")), current_statement_begin__, prog_reader__()); 251 : vals_r__ = context__.vals_r("alpha"); 252 : pos__ = 0U; 253 : context__.validate_dims("parameter initialization", "alpha", "double", context__.to_vec()); 254 : double alpha(0); 255 : alpha = vals_r__[pos__++]; 256 : try { 257 : writer__.scalar_lb_unconstrain(0, alpha); 258 : } catch (const std::exception& e) { 259 : stan::lang::rethrow_located(std::runtime_error(std::string("Error transforming variable alpha: ") + e.what()), current_statement_begin__, prog_reader__()); 260 : } 261 : 262 : current_statement_begin__ = 28; 263 : if (!(context__.contains_r("lambda"))) 264 : stan::lang::rethrow_located(std::runtime_error(std::string("Variable lambda missing")), current_statement_begin__, prog_reader__()); 265 : vals_r__ = context__.vals_r("lambda"); 266 : pos__ = 0U; 267 : context__.validate_dims("parameter initialization", "lambda", "double", context__.to_vec()); 268 : double lambda(0); 269 : lambda = vals_r__[pos__++]; 270 : try { 271 : writer__.scalar_lb_unconstrain(0, lambda); 272 : } catch (const std::exception& e) { 273 : stan::lang::rethrow_located(std::runtime_error(std::string("Error transforming variable lambda: ") + e.what()), current_statement_begin__, prog_reader__()); 274 : } 275 : 276 : params_r__ = writer__.data_r(); 277 : params_i__ = writer__.data_i(); 278 : } 279 : 280 : void transform_inits(const stan::io::var_context& context, 281 : Eigen::Matrix& params_r, 282 : std::ostream* pstream__) const { 283 : std::vector params_r_vec; 284 : std::vector params_i_vec; 285 : transform_inits(context, params_i_vec, params_r_vec, pstream__); 286 : params_r.resize(params_r_vec.size()); 287 : for (int i = 0; i < params_r.size(); ++i) 288 : params_r(i) = params_r_vec[i]; 289 : } 290 : 291 : 292 : template 293 : T__ log_prob(std::vector& params_r__, 294 : std::vector& params_i__, 295 : std::ostream* pstream__ = 0) const { 296 : 297 : typedef T__ local_scalar_t__; 298 : 299 : local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); 300 : (void) DUMMY_VAR__; // dummy to suppress unused var warning 301 : 302 : T__ lp__(0.0); 303 : stan::math::accumulator lp_accum__; 304 : try { 305 : stan::io::reader in__(params_r__, params_i__); 306 : 307 : // model parameters 308 : current_statement_begin__ = 27; 309 : local_scalar_t__ alpha; 310 : (void) alpha; // dummy to suppress unused var warning 311 : if (jacobian__) 312 : alpha = in__.scalar_lb_constrain(0, lp__); 313 : else 314 : alpha = in__.scalar_lb_constrain(0); 315 : 316 : current_statement_begin__ = 28; 317 : local_scalar_t__ lambda; 318 : (void) lambda; // dummy to suppress unused var warning 319 : if (jacobian__) 320 : lambda = in__.scalar_lb_constrain(0, lp__); 321 : else 322 : lambda = in__.scalar_lb_constrain(0); 323 : 324 : // model body 325 : 326 : current_statement_begin__ = 31; 327 : lp_accum__.add(gamma_lpdf(y, alpha, (1 / lambda))); 328 : current_statement_begin__ = 32; 329 : lp_accum__.add(lgammaJacLinf(y, alpha, lambda, pstream__)); 330 : 331 : } catch (const std::exception& e) { 332 : stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__()); 333 : // Next line prevents compiler griping about no return 334 : throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); 335 : } 336 : 337 : lp_accum__.add(lp__); 338 : return lp_accum__.sum(); 339 : 340 : } // log_prob() 341 : 342 : template 343 : T_ log_prob(Eigen::Matrix& params_r, 344 : std::ostream* pstream = 0) const { 345 : std::vector vec_params_r; 346 : vec_params_r.reserve(params_r.size()); 347 : for (int i = 0; i < params_r.size(); ++i) 348 : vec_params_r.push_back(params_r(i)); 349 : std::vector vec_params_i; 350 : return log_prob(vec_params_r, vec_params_i, pstream); 351 : } 352 : 353 : 354 : void get_param_names(std::vector& names__) const { 355 : names__.resize(0); 356 : names__.push_back("alpha"); 357 : names__.push_back("lambda"); 358 : } 359 : 360 : 361 : void get_dims(std::vector >& dimss__) const { 362 : dimss__.resize(0); 363 : std::vector dims__; 364 : dims__.resize(0); 365 : dimss__.push_back(dims__); 366 : dims__.resize(0); 367 : dimss__.push_back(dims__); 368 : } 369 : 370 : template 371 : void write_array(RNG& base_rng__, 372 : std::vector& params_r__, 373 : std::vector& params_i__, 374 : std::vector& vars__, 375 : bool include_tparams__ = true, 376 : bool include_gqs__ = true, 377 : std::ostream* pstream__ = 0) const { 378 : typedef double local_scalar_t__; 379 : 380 : vars__.resize(0); 381 : stan::io::reader in__(params_r__, params_i__); 382 : static const char* function__ = "model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6_namespace::write_array"; 383 : (void) function__; // dummy to suppress unused var warning 384 : 385 : // read-transform, write parameters 386 : double alpha = in__.scalar_lb_constrain(0); 387 : vars__.push_back(alpha); 388 : 389 : double lambda = in__.scalar_lb_constrain(0); 390 : vars__.push_back(lambda); 391 : 392 : double lp__ = 0.0; 393 : (void) lp__; // dummy to suppress unused var warning 394 : stan::math::accumulator lp_accum__; 395 : 396 : local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); 397 : (void) DUMMY_VAR__; // suppress unused var warning 398 : 399 : if (!include_tparams__ && !include_gqs__) return; 400 : 401 : try { 402 : if (!include_gqs__ && !include_tparams__) return; 403 : if (!include_gqs__) return; 404 : } catch (const std::exception& e) { 405 : stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__()); 406 : // Next line prevents compiler griping about no return 407 : throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); 408 : } 409 : } 410 : 411 : template 412 : void write_array(RNG& base_rng, 413 : Eigen::Matrix& params_r, 414 : Eigen::Matrix& vars, 415 : bool include_tparams = true, 416 : bool include_gqs = true, 417 : std::ostream* pstream = 0) const { 418 : std::vector params_r_vec(params_r.size()); 419 : for (int i = 0; i < params_r.size(); ++i) 420 : params_r_vec[i] = params_r(i); 421 : std::vector vars_vec; 422 : std::vector params_i_vec; 423 : write_array(base_rng, params_r_vec, params_i_vec, vars_vec, include_tparams, include_gqs, pstream); 424 : vars.resize(vars_vec.size()); 425 : for (int i = 0; i < vars.size(); ++i) 426 : vars(i) = vars_vec[i]; 427 : } 428 : 429 : static std::string model_name() { 430 : return "model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6"; 431 : } 432 : 433 : 434 : void constrained_param_names(std::vector& param_names__, 435 : bool include_tparams__ = true, 436 : bool include_gqs__ = true) const { 437 : std::stringstream param_name_stream__; 438 : param_name_stream__.str(std::string()); 439 : param_name_stream__ << "alpha"; 440 : param_names__.push_back(param_name_stream__.str()); 441 : param_name_stream__.str(std::string()); 442 : param_name_stream__ << "lambda"; 443 : param_names__.push_back(param_name_stream__.str()); 444 : 445 : if (!include_gqs__ && !include_tparams__) return; 446 : 447 : if (include_tparams__) { 448 : } 449 : 450 : if (!include_gqs__) return; 451 : } 452 : 453 : 454 : void unconstrained_param_names(std::vector& param_names__, 455 : bool include_tparams__ = true, 456 : bool include_gqs__ = true) const { 457 : std::stringstream param_name_stream__; 458 : param_name_stream__.str(std::string()); 459 : param_name_stream__ << "alpha"; 460 : param_names__.push_back(param_name_stream__.str()); 461 : param_name_stream__.str(std::string()); 462 : param_name_stream__ << "lambda"; 463 : param_names__.push_back(param_name_stream__.str()); 464 : 465 : if (!include_gqs__ && !include_tparams__) return; 466 : 467 : if (include_tparams__) { 468 : } 469 : 470 : if (!include_gqs__) return; 471 : } 472 : 473 : }; // model 474 : 475 : } // namespace 476 : 477 : typedef model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6_namespace::model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6 stan_model; 478 : 479 : #include 480 : /** 481 : * Define Rcpp Module to expose stan_fit's functions to R. 482 : */ 483 : RCPP_MODULE(stan_fit4model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6_mod){ 484 : Rcpp::class_ >("stan_fit4model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6") 486 : // .constructor() 487 : .constructor() 488 : // .constructor() 489 : .method("call_sampler", 490 : &rstan::stan_fit::call_sampler) 491 : .method("param_names", 492 : &rstan::stan_fit::param_names) 493 : .method("param_names_oi", 494 : &rstan::stan_fit::param_names_oi) 495 : .method("param_fnames_oi", 496 : &rstan::stan_fit::param_fnames_oi) 497 : .method("param_dims", 498 : &rstan::stan_fit::param_dims) 499 : .method("param_dims_oi", 500 : &rstan::stan_fit::param_dims_oi) 501 : .method("update_param_oi", 502 : &rstan::stan_fit::update_param_oi) 503 : .method("param_oi_tidx", 504 : &rstan::stan_fit::param_oi_tidx) 505 : .method("grad_log_prob", 506 : &rstan::stan_fit::grad_log_prob) 507 : .method("log_prob", 508 : &rstan::stan_fit::log_prob) 509 : .method("unconstrain_pars", 510 : &rstan::stan_fit::unconstrain_pars) 511 : .method("constrain_pars", 512 : &rstan::stan_fit::constrain_pars) 513 : .method("num_pars_unconstrained", 514 : &rstan::stan_fit::num_pars_unconstrained) 515 : .method("unconstrained_param_names", 516 : &rstan::stan_fit::unconstrained_param_names) 517 : .method("constrained_param_names", 518 : &rstan::stan_fit::constrained_param_names) 519 : .method("standalone_gqs", 520 : &rstan::stan_fit::standalone_gqs) 521 : ; 522 : } 523 : 524 : // declarations 525 : extern "C" { 526 : SEXP file13546780f2ee( ) ; 527 : } 528 : 529 : // definition 530 : 531 : SEXP file13546780f2ee( ){ 532 : return Rcpp::wrap("19c1c5943c1b2d98a9c111d35b7c32d6"); 533 : } 534 : 535 : Compilation argument: /Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB file13546780f2ee.cpp 2> file13546780f2ee.cpp.err.txt In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:1: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Core:96: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/complex:246: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace using ::signbit; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace using ::fpclassify; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'? using ::isfinite; ~~^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:749:12: note: 'finite' declared here extern int finite(double) ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:1: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Core:96: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/complex:246: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace using ::isinf; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace using ::isnan; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace using ::isnormal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:319:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'? using ::isgreater; ^~ /Library/Developer/CommandLineTools/usr/include/c++/v1/functional:720:29: note: '::std::greater' declared here struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool> ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:1: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Core:96: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/complex:246: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:320:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'? using ::isgreaterequal; ^~ /Library/Developer/CommandLineTools/usr/include/c++/v1/functional:749:29: note: '::std::greater_equal' declared here struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool> ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:1: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Core:96: In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/complex:246: /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace using ::isless; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace using ::islessequal; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace using ::islessgreater; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace using ::isunordered; ~~^ /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace using ::isunordered; ~~^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:1: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Core:371: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/MathFunctions.h:712:16: error: no member named 'isfinite' in namespace 'std'; did you mean 'finite'? using std::isfinite; ~~~~~^~~~~~~~ finite /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: note: 'finite' declared here using ::isfinite; ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:1: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Core:371: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/MathFunctions.h:727:16: error: no member named 'isinf' in namespace 'std' using std::isinf; ~~~~~^ /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/MathFunctions.h:742:16: error: no member named 'isnan' in namespace 'std' using std::isnan; ~~~~~^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:1: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Core:535: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:2: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/LU:47: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:3: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Cholesky:12: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Jacobi:29: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:3: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Cholesky:43: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/QR:17: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Householder:27: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/SVD:48: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:6: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Geometry:58: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:5: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/build_vari_array.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:7: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Eigenvalues:58: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas] #pragma clang diagnostic pop ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:17: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/operator_addition.hpp:7: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/scal/fun/is_nan.hpp:17:44: error: expected unqualified-id inline bool is_nan(double x) { return std::isnan(x); } ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan' ( sizeof(x) == sizeof(float) ? __inline_isnanf((float)(x)) \ ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:37: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/constants/constants.hpp:13: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/tools/convert_from_string.hpp:15: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/lexical_cast.hpp:32: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/lexical_cast/try_lexical_convert.hpp:44: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:63: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/lexical_cast/detail/inf_nan.hpp:34: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/special_functions/sign.hpp:30:17: error: no member named 'signbit' in namespace 'std'; did you mean simply 'signbit'? return (std::signbit)(x) ? 1 : 0; ^~~~~~~~~~~~ signbit /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/special_functions/math_fwd.hpp:891:8: note: 'signbit' declared here int signbit BOOST_NO_MACRO_EXPAND(T x); ^ In file included from file13546780f2ee.cpp:8: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/src/stan/model/model_header.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core.hpp:37: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/operator_unary_plus.hpp:7: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/scal/fun/constants.hpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/constants/constants.hpp:13: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/tools/convert_from_string.hpp:15: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/lexical_cast.hpp:32: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/lexical_cast/try_lexical_convert.hpp:44: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/lexical_cast/detail/converter_lexical.hpp:54: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:63: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/lexical_cast/detail/inf_nan.hpp:35: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/special_functions/fpclassify.hpp:155:12: error: no member named 'fpclassify' in namespace 'std'; did you mean simply 'fpclassify'? return (std::fpclassify)(t); ^~~~~~~~~~~~~~~ fpclassify /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/special_functions/math_fwd.hpp:876:8: note: 'fpclassify' declared here int fpclassify BOOST_NO_MACRO_EXPAND(T t); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 8 warnings and 20 errors generated. make: *** [file13546780f2ee.o] Error 1 ERROR(s) during compilation: source code errors or compiler configuration errors! Program source: 1: 2: // includes from the plugin 3: // [[Rcpp::plugins(cpp14)]] 4: 5: // user includes 6: #define STAN__SERVICES__COMMAND_HPP// Code generated by Stan version 2.19.1 7: 8: #include 9: 10: namespace model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6_namespace { 11: 12: using std::istream; 13: using std::string; 14: using std::stringstream; 15: using std::vector; 16: using stan::io::dump; 17: using stan::math::lgamma; 18: using stan::model::prob_grad; 19: using namespace stan::math; 20: 21: static int current_statement_begin__; 22: 23: stan::io::program_reader prog_reader__() { 24: stan::io::program_reader reader; 25: reader.add_event(0, 0, "start", "model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6"); 26: reader.add_event(35, 33, "end", "model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6"); 27: return reader; 28: } 29: 30: template 31: typename boost::math::tools::promote_args::type 32: gammaCDFderiv(const T0__& alpha, 33: const T1__& x, std::ostream* pstream__); 34: 35: template 36: typename boost::math::tools::promote_args::type 37: lgammaJacLinf(const Eigen::Matrix& x, 38: const T1__& alpha, 39: const T2__& lambda, std::ostream* pstream__) { 40: typedef typename boost::math::tools::promote_args::type local_scalar_t__; 41: typedef local_scalar_t__ fun_return_scalar_t__; 42: const static bool propto__ = true; 43: (void) propto__; 44: local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); 45: (void) DUMMY_VAR__; // suppress unused var warning 46: 47: int current_statement_begin__ = -1; 48: try { 49: { 50: current_statement_begin__ = 4; 51: validate_non_negative_index("prob", "num_elements(x)", num_elements(x)); 52: Eigen::Matrix prob(num_elements(x)); 53: stan::math::initialize(prob, DUMMY_VAR__); 54: stan::math::fill(prob, DUMMY_VAR__); 55: 56: current_statement_begin__ = 5; 57: local_scalar_t__ my_target(DUMMY_VAR__); 58: (void) my_target; // dummy to suppress unused var warning 59: stan::math::initialize(my_target, DUMMY_VAR__); 60: stan::math::fill(my_target, DUMMY_VAR__); 61: stan::math::assign(my_target,0); 62: 63: current_statement_begin__ = 6; 64: local_scalar_t__ num_elem(DUMMY_VAR__); 65: (void) num_elem; // dummy to suppress unused var warning 66: stan::math::initialize(num_elem, DUMMY_VAR__); 67: stan::math::fill(num_elem, DUMMY_VAR__); 68: stan::math::assign(num_elem,num_elements(x)); 69: 70: 71: current_statement_begin__ = 7; 72: for (int i = 2; i <= num_elements(x); ++i) { 73: 74: current_statement_begin__ = 8; 75: for (int j = 1; j <= i; ++j) { 76: { 77: current_statement_begin__ = 9; 78: local_scalar_t__ gam_1(DUMMY_VAR__); 79: (void) gam_1; // dummy to suppress unused var warning 80: stan::math::initialize(gam_1, DUMMY_VAR__); 81: stan::math::fill(gam_1, DUMMY_VAR__); 82: stan::math::assign(gam_1,gammaCDFderiv(alpha, (lambda * get_base1(x, j, "x", 1)), pstream__)); 83: 84: current_statement_begin__ = 10; 85: local_scalar_t__ gam_2(DUMMY_VAR__); 86: (void) gam_2; // dummy to suppress unused var warning 87: stan::math::initialize(gam_2, DUMMY_VAR__); 88: stan::math::fill(gam_2, DUMMY_VAR__); 89: stan::math::assign(gam_2,gammaCDFderiv(alpha, (lambda * get_base1(x, i, "x", 1)), pstream__)); 90: 91: current_statement_begin__ = 11; 92: local_scalar_t__ gamma_term(DUMMY_VAR__); 93: (void) gamma_term; // dummy to suppress unused var warning 94: stan::math::initialize(gamma_term, DUMMY_VAR__); 95: stan::math::fill(gamma_term, DUMMY_VAR__); 96: stan::math::assign(gamma_term,stan::math::tgamma((alpha + 1))); 97: 98: current_statement_begin__ = 12; 99: local_scalar_t__ denom_1(DUMMY_VAR__); 100: (void) denom_1; // dummy to suppress unused var warning 101: stan::math::initialize(denom_1, DUMMY_VAR__); 102: stan::math::fill(denom_1, DUMMY_VAR__); 103: stan::math::assign(denom_1,(pow((lambda * get_base1(x, j, "x", 1)), alpha) * stan::math::exp((-(lambda) * get_base1(x, j, "x", 1))))); 104: 105: current_statement_begin__ = 13; 106: local_scalar_t__ denom_2(DUMMY_VAR__); 107: (void) denom_2; // dummy to suppress unused var warning 108: stan::math::initialize(denom_2, DUMMY_VAR__); 109: stan::math::fill(denom_2, DUMMY_VAR__); 110: stan::math::assign(denom_2,(pow((lambda * get_base1(x, i, "x", 1)), alpha) * stan::math::exp((-(lambda) * get_base1(x, i, "x", 1))))); 111: 112: current_statement_begin__ = 14; 113: local_scalar_t__ term_1(DUMMY_VAR__); 114: (void) term_1; // dummy to suppress unused var warning 115: stan::math::initialize(term_1, DUMMY_VAR__); 116: stan::math::fill(term_1, DUMMY_VAR__); 117: stan::math::assign(term_1,((gamma_term * gam_1) / denom_1)); 118: 119: current_statement_begin__ = 15; 120: local_scalar_t__ term_2(DUMMY_VAR__); 121: (void) term_2; // dummy to suppress unused var warning 122: stan::math::initialize(term_2, DUMMY_VAR__); 123: stan::math::fill(term_2, DUMMY_VAR__); 124: stan::math::assign(term_2,((gamma_term * gam_2) / denom_2)); 125: 126: 127: current_statement_begin__ = 16; 128: stan::math::assign(my_target, (my_target + ((get_base1(x, i, "x", 1) * get_base1(x, j, "x", 1)) * stan::math::fabs((term_1 - term_2))))); 129: } 130: } 131: } 132: current_statement_begin__ = 19; 133: return stan::math::promote_scalar(stan::math::log((pow((lambda * alpha), -(1)) * my_target))); 134: } 135: } catch (const std::exception& e) { 136: stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__()); 137: // Next line prevents compiler griping about no return 138: throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); 139: } 140: } 141: 142: 143: struct lgammaJacLinf_functor__ { 144: template 145: typename boost::math::tools::promote_args::type 146: operator()(const Eigen::Matrix& x, 147: const T1__& alpha, 148: const T2__& lambda, std::ostream* pstream__) const { 149: return lgammaJacLinf(x, alpha, lambda, pstream__); 150: } 151: }; 152: 153: 154: #include "/Users/murph/Documents/Research/EAS_GFD/stan.hpp" 155: class model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6 : public prob_grad { 156: private: 157: int N; 158: vector_d y; 159: public: 160: model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6(stan::io::var_context& context__, 161: std::ostream* pstream__ = 0) 162: : prob_grad(0) { 163: ctor_body(context__, 0, pstream__); 164: } 165: 166: model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6(stan::io::var_context& context__, 167: unsigned int random_seed__, 168: std::ostream* pstream__ = 0) 169: : prob_grad(0) { 170: ctor_body(context__, random_seed__, pstream__); 171: } 172: 173: void ctor_body(stan::io::var_context& context__, 174: unsigned int random_seed__, 175: std::ostream* pstream__) { 176: typedef double local_scalar_t__; 177: 178: boost::ecuyer1988 base_rng__ = 179: stan::services::util::create_rng(random_seed__, 0); 180: (void) base_rng__; // suppress unused var warning 181: 182: current_statement_begin__ = -1; 183: 184: static const char* function__ = "model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6_namespace::model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6"; 185: (void) function__; // dummy to suppress unused var warning 186: size_t pos__; 187: (void) pos__; // dummy to suppress unused var warning 188: std::vector vals_i__; 189: std::vector vals_r__; 190: local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); 191: (void) DUMMY_VAR__; // suppress unused var warning 192: 193: try { 194: // initialize data block variables from context__ 195: current_statement_begin__ = 23; 196: context__.validate_dims("data initialization", "N", "int", context__.to_vec()); 197: N = int(0); 198: vals_i__ = context__.vals_i("N"); 199: pos__ = 0; 200: N = vals_i__[pos__++]; 201: check_greater_or_equal(function__, "N", N, 1); 202: 203: current_statement_begin__ = 24; 204: validate_non_negative_index("y", "N", N); 205: context__.validate_dims("data initialization", "y", "vector_d", context__.to_vec(N)); 206: y = Eigen::Matrix(N); 207: vals_r__ = context__.vals_r("y"); 208: pos__ = 0; 209: size_t y_j_1_max__ = N; 210: for (size_t j_1__ = 0; j_1__ < y_j_1_max__; ++j_1__) { 211: y(j_1__) = vals_r__[pos__++]; 212: } 213: 214: 215: // initialize transformed data variables 216: // execute transformed data statements 217: 218: // validate transformed data 219: 220: // validate, set parameter ranges 221: num_params_r__ = 0U; 222: param_ranges_i__.clear(); 223: current_statement_begin__ = 27; 224: num_params_r__ += 1; 225: current_statement_begin__ = 28; 226: num_params_r__ += 1; 227: } catch (const std::exception& e) { 228: stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__()); 229: // Next line prevents compiler griping about no return 230: throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); 231: } 232: } 233: 234: ~model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6() { } 235: 236: 237: void transform_inits(const stan::io::var_context& context__, 238: std::vector& params_i__, 239: std::vector& params_r__, 240: std::ostream* pstream__) const { 241: typedef double local_scalar_t__; 242: stan::io::writer writer__(params_r__, params_i__); 243: size_t pos__; 244: (void) pos__; // dummy call to supress warning 245: std::vector vals_r__; 246: std::vector vals_i__; 247: 248: current_statement_begin__ = 27; 249: if (!(context__.contains_r("alpha"))) 250: stan::lang::rethrow_located(std::runtime_error(std::string("Variable alpha missing")), current_statement_begin__, prog_reader__()); 251: vals_r__ = context__.vals_r("alpha"); 252: pos__ = 0U; 253: context__.validate_dims("parameter initialization", "alpha", "double", context__.to_vec()); 254: double alpha(0); 255: alpha = vals_r__[pos__++]; 256: try { 257: writer__.scalar_lb_unconstrain(0, alpha); 258: } catch (const std::exception& e) { 259: stan::lang::rethrow_located(std::runtime_error(std::string("Error transforming variable alpha: ") + e.what()), current_statement_begin__, prog_reader__()); 260: } 261: 262: current_statement_begin__ = 28; 263: if (!(context__.contains_r("lambda"))) 264: stan::lang::rethrow_located(std::runtime_error(std::string("Variable lambda missing")), current_statement_begin__, prog_reader__()); 265: vals_r__ = context__.vals_r("lambda"); 266: pos__ = 0U; 267: context__.validate_dims("parameter initialization", "lambda", "double", context__.to_vec()); 268: double lambda(0); 269: lambda = vals_r__[pos__++]; 270: try { 271: writer__.scalar_lb_unconstrain(0, lambda); 272: } catch (const std::exception& e) { 273: stan::lang::rethrow_located(std::runtime_error(std::string("Error transforming variable lambda: ") + e.what()), current_statement_begin__, prog_reader__()); 274: } 275: 276: params_r__ = writer__.data_r(); 277: params_i__ = writer__.data_i(); 278: } 279: 280: void transform_inits(const stan::io::var_context& context, 281: Eigen::Matrix& params_r, 282: std::ostream* pstream__) const { 283: std::vector params_r_vec; 284: std::vector params_i_vec; 285: transform_inits(context, params_i_vec, params_r_vec, pstream__); 286: params_r.resize(params_r_vec.size()); 287: for (int i = 0; i < params_r.size(); ++i) 288: params_r(i) = params_r_vec[i]; 289: } 290: 291: 292: template 293: T__ log_prob(std::vector& params_r__, 294: std::vector& params_i__, 295: std::ostream* pstream__ = 0) const { 296: 297: typedef T__ local_scalar_t__; 298: 299: local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); 300: (void) DUMMY_VAR__; // dummy to suppress unused var warning 301: 302: T__ lp__(0.0); 303: stan::math::accumulator lp_accum__; 304: try { 305: stan::io::reader in__(params_r__, params_i__); 306: 307: // model parameters 308: current_statement_begin__ = 27; 309: local_scalar_t__ alpha; 310: (void) alpha; // dummy to suppress unused var warning 311: if (jacobian__) 312: alpha = in__.scalar_lb_constrain(0, lp__); 313: else 314: alpha = in__.scalar_lb_constrain(0); 315: 316: current_statement_begin__ = 28; 317: local_scalar_t__ lambda; 318: (void) lambda; // dummy to suppress unused var warning 319: if (jacobian__) 320: lambda = in__.scalar_lb_constrain(0, lp__); 321: else 322: lambda = in__.scalar_lb_constrain(0); 323: 324: // model body 325: 326: current_statement_begin__ = 31; 327: lp_accum__.add(gamma_lpdf(y, alpha, (1 / lambda))); 328: current_statement_begin__ = 32; 329: lp_accum__.add(lgammaJacLinf(y, alpha, lambda, pstream__)); 330: 331: } catch (const std::exception& e) { 332: stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__()); 333: // Next line prevents compiler griping about no return 334: throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); 335: } 336: 337: lp_accum__.add(lp__); 338: return lp_accum__.sum(); 339: 340: } // log_prob() 341: 342: template 343: T_ log_prob(Eigen::Matrix& params_r, 344: std::ostream* pstream = 0) const { 345: std::vector vec_params_r; 346: vec_params_r.reserve(params_r.size()); 347: for (int i = 0; i < params_r.size(); ++i) 348: vec_params_r.push_back(params_r(i)); 349: std::vector vec_params_i; 350: return log_prob(vec_params_r, vec_params_i, pstream); 351: } 352: 353: 354: void get_param_names(std::vector& names__) const { 355: names__.resize(0); 356: names__.push_back("alpha"); 357: names__.push_back("lambda"); 358: } 359: 360: 361: void get_dims(std::vector >& dimss__) const { 362: dimss__.resize(0); 363: std::vector dims__; 364: dims__.resize(0); 365: dimss__.push_back(dims__); 366: dims__.resize(0); 367: dimss__.push_back(dims__); 368: } 369: 370: template 371: void write_array(RNG& base_rng__, 372: std::vector& params_r__, 373: std::vector& params_i__, 374: std::vector& vars__, 375: bool include_tparams__ = true, 376: bool include_gqs__ = true, 377: std::ostream* pstream__ = 0) const { 378: typedef double local_scalar_t__; 379: 380: vars__.resize(0); 381: stan::io::reader in__(params_r__, params_i__); 382: static const char* function__ = "model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6_namespace::write_array"; 383: (void) function__; // dummy to suppress unused var warning 384: 385: // read-transform, write parameters 386: double alpha = in__.scalar_lb_constrain(0); 387: vars__.push_back(alpha); 388: 389: double lambda = in__.scalar_lb_constrain(0); 390: vars__.push_back(lambda); 391: 392: double lp__ = 0.0; 393: (void) lp__; // dummy to suppress unused var warning 394: stan::math::accumulator lp_accum__; 395: 396: local_scalar_t__ DUMMY_VAR__(std::numeric_limits::quiet_NaN()); 397: (void) DUMMY_VAR__; // suppress unused var warning 398: 399: if (!include_tparams__ && !include_gqs__) return; 400: 401: try { 402: if (!include_gqs__ && !include_tparams__) return; 403: if (!include_gqs__) return; 404: } catch (const std::exception& e) { 405: stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__()); 406: // Next line prevents compiler griping about no return 407: throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***"); 408: } 409: } 410: 411: template 412: void write_array(RNG& base_rng, 413: Eigen::Matrix& params_r, 414: Eigen::Matrix& vars, 415: bool include_tparams = true, 416: bool include_gqs = true, 417: std::ostream* pstream = 0) const { 418: std::vector params_r_vec(params_r.size()); 419: for (int i = 0; i < params_r.size(); ++i) 420: params_r_vec[i] = params_r(i); 421: std::vector vars_vec; 422: std::vector params_i_vec; 423: write_array(base_rng, params_r_vec, params_i_vec, vars_vec, include_tparams, include_gqs, pstream); 424: vars.resize(vars_vec.size()); 425: for (int i = 0; i < vars.size(); ++i) 426: vars(i) = vars_vec[i]; 427: } 428: 429: static std::string model_name() { 430: return "model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6"; 431: } 432: 433: 434: void constrained_param_names(std::vector& param_names__, 435: bool include_tparams__ = true, 436: bool include_gqs__ = true) const { 437: std::stringstream param_name_stream__; 438: param_name_stream__.str(std::string()); 439: param_name_stream__ << "alpha"; 440: param_names__.push_back(param_name_stream__.str()); 441: param_name_stream__.str(std::string()); 442: param_name_stream__ << "lambda"; 443: param_names__.push_back(param_name_stream__.str()); 444: 445: if (!include_gqs__ && !include_tparams__) return; 446: 447: if (include_tparams__) { 448: } 449: 450: if (!include_gqs__) return; 451: } 452: 453: 454: void unconstrained_param_names(std::vector& param_names__, 455: bool include_tparams__ = true, 456: bool include_gqs__ = true) const { 457: std::stringstream param_name_stream__; 458: param_name_stream__.str(std::string()); 459: param_name_stream__ << "alpha"; 460: param_names__.push_back(param_name_stream__.str()); 461: param_name_stream__.str(std::string()); 462: param_name_stream__ << "lambda"; 463: param_names__.push_back(param_name_stream__.str()); 464: 465: if (!include_gqs__ && !include_tparams__) return; 466: 467: if (include_tparams__) { 468: } 469: 470: if (!include_gqs__) return; 471: } 472: 473: }; // model 474: 475: } // namespace 476: 477: typedef model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6_namespace::model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6 stan_model; 478: 479: #include 480: /** 481: * Define Rcpp Module to expose stan_fit's functions to R. 482: */ 483: RCPP_MODULE(stan_fit4model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6_mod){ 484: Rcpp::class_ >("stan_fit4model135430dc72db_19c1c5943c1b2d98a9c111d35b7c32d6") 486: // .constructor() 487: .constructor() 488: // .constructor() 489: .method("call_sampler", 490: &rstan::stan_fit::call_sampler) 491: .method("param_names", 492: &rstan::stan_fit::param_names) 493: .method("param_names_oi", 494: &rstan::stan_fit::param_names_oi) 495: .method("param_fnames_oi", 496: &rstan::stan_fit::param_fnames_oi) 497: .method("param_dims", 498: &rstan::stan_fit::param_dims) 499: .method("param_dims_oi", 500: &rstan::stan_fit::param_dims_oi) 501: .method("update_param_oi", 502: &rstan::stan_fit::update_param_oi) 503: .method("param_oi_tidx", 504: &rstan::stan_fit::param_oi_tidx) 505: .method("grad_log_prob", 506: &rstan::stan_fit::grad_log_prob) 507: .method("log_prob", 508: &rstan::stan_fit::log_prob) 509: .method("unconstrain_pars", 510: &rstan::stan_fit::unconstrain_pars) 511: .method("constrain_pars", 512: &rstan::stan_fit::constrain_pars) 513: .method("num_pars_unconstrained", 514: &rstan::stan_fit::num_pars_unconstrained) 515: .method("unconstrained_param_names", 516: &rstan::stan_fit::unconstrained_param_names) 517: .method("constrained_param_names", 518: &rstan::stan_fit::constrained_param_names) 519: .method("standalone_gqs", 520: &rstan::stan_fit::standalone_gqs) 521: ; 522: } 523: 524: // declarations 525: extern "C" { 526: SEXP file13546780f2ee( ) ; 527: } 528: 529: // definition 530: 531: SEXP file13546780f2ee( ){ 532: return Rcpp::wrap("19c1c5943c1b2d98a9c111d35b7c32d6"); 533: } 534: 535: