Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TRANSLATING MODEL '93a9e2036bfe1f95ff51d18d02ea73e1' FROM Stan CODE TO C++ CODE NOW.
- successful in parsing the Stan model '93a9e2036bfe1f95ff51d18d02ea73e1'.
- COMPILING THE C++ CODE FOR MODEL '93a9e2036bfe1f95ff51d18d02ea73e1' NOW.
- OS: x86_64, darwin15.6.0; rstan: 2.18.2; Rcpp: 0.12.17; 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.18.0
- 7 :
- 8 : #include <stan/model/model_header.hpp>
- 9 :
- 10 : namespace modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_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", "modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1");
- 26 : reader.add_event(3, 1, "end", "modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1");
- 27 : return reader;
- 28 : }
- 29 :
- 30 : class modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1 : public prob_grad {
- 31 : private:
- 32 : public:
- 33 : modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1(stan::io::var_context& context__,
- 34 : std::ostream* pstream__ = 0)
- 35 : : prob_grad(0) {
- 36 : ctor_body(context__, 0, pstream__);
- 37 : }
- 38 :
- 39 : modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1(stan::io::var_context& context__,
- 40 : unsigned int random_seed__,
- 41 : std::ostream* pstream__ = 0)
- 42 : : prob_grad(0) {
- 43 : ctor_body(context__, random_seed__, pstream__);
- 44 : }
- 45 :
- 46 : void ctor_body(stan::io::var_context& context__,
- 47 : unsigned int random_seed__,
- 48 : std::ostream* pstream__) {
- 49 : typedef double local_scalar_t__;
- 50 :
- 51 : boost::ecuyer1988 base_rng__ =
- 52 : stan::services::util::create_rng(random_seed__, 0);
- 53 : (void) base_rng__; // suppress unused var warning
- 54 :
- 55 : current_statement_begin__ = -1;
- 56 :
- 57 : static const char* function__ = "modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1";
- 58 : (void) function__; // dummy to suppress unused var warning
- 59 : size_t pos__;
- 60 : (void) pos__; // dummy to suppress unused var warning
- 61 : std::vector<int> vals_i__;
- 62 : std::vector<double> vals_r__;
- 63 : local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());
- 64 : (void) DUMMY_VAR__; // suppress unused var warning
- 65 :
- 66 : // initialize member variables
- 67 : try {
- 68 :
- 69 : // validate, data variables
- 70 : // initialize data variables
- 71 :
- 72 :
- 73 : // validate transformed data
- 74 :
- 75 : // validate, set parameter ranges
- 76 : num_params_r__ = 0U;
- 77 : param_ranges_i__.clear();
- 78 : current_statement_begin__ = 1;
- 79 : ++num_params_r__;
- 80 : } catch (const std::exception& e) {
- 81 : stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__());
- 82 : // Next line prevents compiler griping about no return
- 83 : throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***");
- 84 : }
- 85 : }
- 86 :
- 87 : ~modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1() { }
- 88 :
- 89 :
- 90 : void transform_inits(const stan::io::var_context& context__,
- 91 : std::vector<int>& params_i__,
- 92 : std::vector<double>& params_r__,
- 93 : std::ostream* pstream__) const {
- 94 : stan::io::writer<double> writer__(params_r__,params_i__);
- 95 : size_t pos__;
- 96 : (void) pos__; // dummy call to supress warning
- 97 : std::vector<double> vals_r__;
- 98 : std::vector<int> vals_i__;
- 99 :
- 100 : if (!(context__.contains_r("theta")))
- 101 : throw std::runtime_error("variable theta missing");
- 102 : vals_r__ = context__.vals_r("theta");
- 103 : pos__ = 0U;
- 104 : context__.validate_dims("initialization", "theta", "double", context__.to_vec());
- 105 : double theta(0);
- 106 : theta = vals_r__[pos__++];
- 107 : try {
- 108 : writer__.scalar_unconstrain(theta);
- 109 : } catch (const std::exception& e) {
- 110 : throw std::runtime_error(std::string("Error transforming variable theta: ") + e.what());
- 111 : }
- 112 :
- 113 : params_r__ = writer__.data_r();
- 114 : params_i__ = writer__.data_i();
- 115 : }
- 116 :
- 117 : void transform_inits(const stan::io::var_context& context,
- 118 : Eigen::Matrix<double,Eigen::Dynamic,1>& params_r,
- 119 : std::ostream* pstream__) const {
- 120 : std::vector<double> params_r_vec;
- 121 : std::vector<int> params_i_vec;
- 122 : transform_inits(context, params_i_vec, params_r_vec, pstream__);
- 123 : params_r.resize(params_r_vec.size());
- 124 : for (int i = 0; i < params_r.size(); ++i)
- 125 : params_r(i) = params_r_vec[i];
- 126 : }
- 127 :
- 128 :
- 129 : template <bool propto__, bool jacobian__, typename T__>
- 130 : T__ log_prob(vector<T__>& params_r__,
- 131 : vector<int>& params_i__,
- 132 : std::ostream* pstream__ = 0) const {
- 133 :
- 134 : typedef T__ local_scalar_t__;
- 135 :
- 136 : local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());
- 137 : (void) DUMMY_VAR__; // suppress unused var warning
- 138 :
- 139 : T__ lp__(0.0);
- 140 : stan::math::accumulator<T__> lp_accum__;
- 141 :
- 142 : try {
- 143 : // model parameters
- 144 : stan::io::reader<local_scalar_t__> in__(params_r__,params_i__);
- 145 :
- 146 : local_scalar_t__ theta;
- 147 : (void) theta; // dummy to suppress unused var warning
- 148 : if (jacobian__)
- 149 : theta = in__.scalar_constrain(lp__);
- 150 : else
- 151 : theta = in__.scalar_constrain();
- 152 :
- 153 :
- 154 : // transformed parameters
- 155 :
- 156 :
- 157 :
- 158 : // validate transformed parameters
- 159 :
- 160 : const char* function__ = "validate transformed params";
- 161 : (void) function__; // dummy to suppress unused var warning
- 162 :
- 163 : // model body
- 164 :
- 165 : } catch (const std::exception& e) {
- 166 : stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__());
- 167 : // Next line prevents compiler griping about no return
- 168 : throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***");
- 169 : }
- 170 :
- 171 : lp_accum__.add(lp__);
- 172 : return lp_accum__.sum();
- 173 :
- 174 : } // log_prob()
- 175 :
- 176 : template <bool propto, bool jacobian, typename T_>
- 177 : T_ log_prob(Eigen::Matrix<T_,Eigen::Dynamic,1>& params_r,
- 178 : std::ostream* pstream = 0) const {
- 179 : std::vector<T_> vec_params_r;
- 180 : vec_params_r.reserve(params_r.size());
- 181 : for (int i = 0; i < params_r.size(); ++i)
- 182 : vec_params_r.push_back(params_r(i));
- 183 : std::vector<int> vec_params_i;
- 184 : return log_prob<propto,jacobian,T_>(vec_params_r, vec_params_i, pstream);
- 185 : }
- 186 :
- 187 :
- 188 : void get_param_names(std::vector<std::string>& names__) const {
- 189 : names__.resize(0);
- 190 : names__.push_back("theta");
- 191 : }
- 192 :
- 193 :
- 194 : void get_dims(std::vector<std::vector<size_t> >& dimss__) const {
- 195 : dimss__.resize(0);
- 196 : std::vector<size_t> dims__;
- 197 : dims__.resize(0);
- 198 : dimss__.push_back(dims__);
- 199 : }
- 200 :
- 201 : template <typename RNG>
- 202 : void write_array(RNG& base_rng__,
- 203 : std::vector<double>& params_r__,
- 204 : std::vector<int>& params_i__,
- 205 : std::vector<double>& vars__,
- 206 : bool include_tparams__ = true,
- 207 : bool include_gqs__ = true,
- 208 : std::ostream* pstream__ = 0) const {
- 209 : typedef double local_scalar_t__;
- 210 :
- 211 : vars__.resize(0);
- 212 : stan::io::reader<local_scalar_t__> in__(params_r__,params_i__);
- 213 : static const char* function__ = "modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::write_array";
- 214 : (void) function__; // dummy to suppress unused var warning
- 215 : // read-transform, write parameters
- 216 : double theta = in__.scalar_constrain();
- 217 : vars__.push_back(theta);
- 218 :
- 219 : // declare and define transformed parameters
- 220 : double lp__ = 0.0;
- 221 : (void) lp__; // dummy to suppress unused var warning
- 222 : stan::math::accumulator<double> lp_accum__;
- 223 :
- 224 : local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());
- 225 : (void) DUMMY_VAR__; // suppress unused var warning
- 226 :
- 227 : try {
- 228 :
- 229 :
- 230 :
- 231 : // validate transformed parameters
- 232 :
- 233 : // write transformed parameters
- 234 : if (include_tparams__) {
- 235 : }
- 236 : if (!include_gqs__) return;
- 237 : // declare and define generated quantities
- 238 :
- 239 :
- 240 :
- 241 : // validate generated quantities
- 242 :
- 243 : // write generated quantities
- 244 : } catch (const std::exception& e) {
- 245 : stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__());
- 246 : // Next line prevents compiler griping about no return
- 247 : throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***");
- 248 : }
- 249 : }
- 250 :
- 251 : template <typename RNG>
- 252 : void write_array(RNG& base_rng,
- 253 : Eigen::Matrix<double,Eigen::Dynamic,1>& params_r,
- 254 : Eigen::Matrix<double,Eigen::Dynamic,1>& vars,
- 255 : bool include_tparams = true,
- 256 : bool include_gqs = true,
- 257 : std::ostream* pstream = 0) const {
- 258 : std::vector<double> params_r_vec(params_r.size());
- 259 : for (int i = 0; i < params_r.size(); ++i)
- 260 : params_r_vec[i] = params_r(i);
- 261 : std::vector<double> vars_vec;
- 262 : std::vector<int> params_i_vec;
- 263 : write_array(base_rng,params_r_vec,params_i_vec,vars_vec,include_tparams,include_gqs,pstream);
- 264 : vars.resize(vars_vec.size());
- 265 : for (int i = 0; i < vars.size(); ++i)
- 266 : vars(i) = vars_vec[i];
- 267 : }
- 268 :
- 269 : static std::string model_name() {
- 270 : return "modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1";
- 271 : }
- 272 :
- 273 :
- 274 : void constrained_param_names(std::vector<std::string>& param_names__,
- 275 : bool include_tparams__ = true,
- 276 : bool include_gqs__ = true) const {
- 277 : std::stringstream param_name_stream__;
- 278 : param_name_stream__.str(std::string());
- 279 : param_name_stream__ << "theta";
- 280 : param_names__.push_back(param_name_stream__.str());
- 281 :
- 282 : if (!include_gqs__ && !include_tparams__) return;
- 283 :
- 284 : if (include_tparams__) {
- 285 : }
- 286 :
- 287 :
- 288 : if (!include_gqs__) return;
- 289 : }
- 290 :
- 291 :
- 292 : void unconstrained_param_names(std::vector<std::string>& param_names__,
- 293 : bool include_tparams__ = true,
- 294 : bool include_gqs__ = true) const {
- 295 : std::stringstream param_name_stream__;
- 296 : param_name_stream__.str(std::string());
- 297 : param_name_stream__ << "theta";
- 298 : param_names__.push_back(param_name_stream__.str());
- 299 :
- 300 : if (!include_gqs__ && !include_tparams__) return;
- 301 :
- 302 : if (include_tparams__) {
- 303 : }
- 304 :
- 305 :
- 306 : if (!include_gqs__) return;
- 307 : }
- 308 :
- 309 : }; // model
- 310 :
- 311 : }
- 312 :
- 313 : typedef modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1 stan_model;
- 314 :
- 315 : #include <rstan/rstaninc.hpp>
- 316 : /**
- 317 : * Define Rcpp Module to expose stan_fit's functions to R.
- 318 : */
- 319 : RCPP_MODULE(stan_fit4modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_mod){
- 320 : Rcpp::class_<rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1,
- 321 : boost::random::ecuyer1988> >("stan_fit4modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1")
- 322 : // .constructor<Rcpp::List>()
- 323 : .constructor<SEXP, SEXP, SEXP>()
- 324 : // .constructor<SEXP, SEXP>()
- 325 : .method("call_sampler",
- 326 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::call_sampler)
- 327 : .method("param_names",
- 328 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::param_names)
- 329 : .method("param_names_oi",
- 330 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::param_names_oi)
- 331 : .method("param_fnames_oi",
- 332 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::param_fnames_oi)
- 333 : .method("param_dims",
- 334 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::param_dims)
- 335 : .method("param_dims_oi",
- 336 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::param_dims_oi)
- 337 : .method("update_param_oi",
- 338 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::update_param_oi)
- 339 : .method("param_oi_tidx",
- 340 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::param_oi_tidx)
- 341 : .method("grad_log_prob",
- 342 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::grad_log_prob)
- 343 : .method("log_prob",
- 344 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::log_prob)
- 345 : .method("unconstrain_pars",
- 346 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::unconstrain_pars)
- 347 : .method("constrain_pars",
- 348 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::constrain_pars)
- 349 : .method("num_pars_unconstrained",
- 350 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::num_pars_unconstrained)
- 351 : .method("unconstrained_param_names",
- 352 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::unconstrained_param_names)
- 353 : .method("constrained_param_names",
- 354 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::constrained_param_names)
- 355 : .method("standalone_gqs",
- 356 : &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::standalone_gqs)
- 357 : ;
- 358 : }
- 359 :
- 360 : // declarations
- 361 : extern "C" {
- 362 : SEXP filee4b82f993333( ) ;
- 363 : }
- 364 :
- 365 : // definition
- 366 :
- 367 : SEXP filee4b82f993333( ){
- 368 : return Rcpp::wrap("93a9e2036bfe1f95ff51d18d02ea73e1");
- 369 : }
- 370 :
- 371 :
- Compilation argument:
- /Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB filee4b82f993333.cpp 2> filee4b82f993333.cpp.err.txt
- In file included from filee4b82f993333.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:12:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/var.hpp:7:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/tools/config.hpp:19:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/config/no_tr1/cmath.hpp:21:
- /usr/local/clang4/bin/../include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace
- using ::signbit;
- ~~^
- /usr/local/clang4/bin/../include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace
- using ::fpclassify;
- ~~^
- /usr/local/clang4/bin/../include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
- using ::isfinite;
- ~~^
- /usr/include/math.h:749:12: note: 'finite' declared here
- extern int finite(double)
- ^
- In file included from filee4b82f993333.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:12:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/var.hpp:7:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/tools/config.hpp:19:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/config/no_tr1/cmath.hpp:21:
- /usr/local/clang4/bin/../include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace
- using ::isinf;
- ~~^
- /usr/local/clang4/bin/../include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace
- using ::isnan;
- ~~^
- /usr/local/clang4/bin/../include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace
- using ::isnormal;
- ~~^
- /usr/local/clang4/bin/../include/c++/v1/cmath:319:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'?
- using ::isgreater;
- ^~
- /usr/local/clang4/bin/../include/c++/v1/functional:718:29: note: '::std::greater' declared here
- struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
- ^
- In file included from filee4b82f993333.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:12:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/var.hpp:7:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/tools/config.hpp:19:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/config/no_tr1/cmath.hpp:21:
- /usr/local/clang4/bin/../include/c++/v1/cmath:320:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'?
- using ::isgreaterequal;
- ^~
- /usr/local/clang4/bin/../include/c++/v1/functional:747:29: note: '::std::greater_equal' declared here
- struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
- ^
- In file included from filee4b82f993333.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:12:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/gevv_vvv_vari.hpp:5:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/var.hpp:7:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/tools/config.hpp:19:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/config/no_tr1/cmath.hpp:21:
- /usr/local/clang4/bin/../include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace
- using ::isless;
- ~~^
- /usr/local/clang4/bin/../include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace
- using ::islessequal;
- ~~^
- /usr/local/clang4/bin/../include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace
- using ::islessgreater;
- ~~^
- /usr/local/clang4/bin/../include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace
- using ::isunordered;
- ~~^
- /usr/local/clang4/bin/../include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
- using ::isunordered;
- ~~^
- In file included from filee4b82f993333.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:14:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/matrix_vari.hpp:4:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat/fun/Eigen_NumTraits.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:368:
- /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/MathFunctions.h:736:16: error: no member named 'isfinite' in namespace 'std'; did you mean 'finite'?
- using std::isfinite;
- ~~~~~^~~~~~~~
- finite
- /usr/local/clang4/bin/../include/c++/v1/cmath:315:9: note: 'finite' declared here
- using ::isfinite;
- ^
- In file included from filee4b82f993333.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:14:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/matrix_vari.hpp:4:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat/fun/Eigen_NumTraits.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:368:
- /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/MathFunctions.h:751: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:766:16: error: no member named 'isnan' in namespace 'std'
- using std::isnan;
- ~~~~~^
- In file included from filee4b82f993333.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:14:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/matrix_vari.hpp:4:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat/fun/Eigen_NumTraits.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:531:
- /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 filee4b82f993333.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:14:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/matrix_vari.hpp:4:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat/fun/Eigen_NumTraits.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 filee4b82f993333.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:14:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/matrix_vari.hpp:4:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat/fun/Eigen_NumTraits.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 filee4b82f993333.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:14:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/matrix_vari.hpp:4:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat/fun/Eigen_NumTraits.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 filee4b82f993333.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:14:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/matrix_vari.hpp:4:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat/fun/Eigen_NumTraits.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 filee4b82f993333.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:14:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/matrix_vari.hpp:4:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat/fun/Eigen_NumTraits.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 filee4b82f993333.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:14:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/matrix_vari.hpp:4:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat/fun/Eigen_NumTraits.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 filee4b82f993333.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:14:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/matrix_vari.hpp:4:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/mat/fun/Eigen_NumTraits.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 filee4b82f993333.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:16:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/operator_addition.hpp:7:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/scal/fun/is_nan.hpp:4:
- /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);
- ^
- In file included from filee4b82f993333.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:16:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/operator_addition.hpp:7:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/scal/fun/is_nan.hpp:4:
- /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/special_functions/fpclassify.hpp:314:17: error: no member named 'isfinite' in namespace 'std'; did you mean simply 'isfinite'?
- return (std::isfinite)(x);
- ^~~~~~~~~~~~~
- isfinite
- /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/special_functions/math_fwd.hpp:879:9: note: 'isfinite' declared here
- bool isfinite BOOST_NO_MACRO_EXPAND(T z);
- ^
- In file included from filee4b82f993333.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:16:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/rev/core/operator_addition.hpp:7:
- In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/StanHeaders/include/stan/math/prim/scal/fun/is_nan.hpp:4:
- /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/special_functions/fpclassify.hpp:385:17: error: no member named 'isnormal' in namespace 'std'; did you mean simply 'isnormal'?
- return (std::isnormal)(x);
- ^~~~~~~~~~~~~
- isnormal
- /Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include/boost/math/special_functions/math_fwd.hpp:888:9: note: 'isnormal' declared here
- bool isnormal BOOST_NO_MACRO_EXPAND(T t);
- ^
- fatal error: too many errors emitted, stopping now [-ferror-limit=]
- 8 warnings and 20 errors generated.
- make: *** [filee4b82f993333.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.18.0
- 7:
- 8: #include <stan/model/model_header.hpp>
- 9:
- 10: namespace modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_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", "modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1");
- 26: reader.add_event(3, 1, "end", "modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1");
- 27: return reader;
- 28: }
- 29:
- 30: class modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1 : public prob_grad {
- 31: private:
- 32: public:
- 33: modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1(stan::io::var_context& context__,
- 34: std::ostream* pstream__ = 0)
- 35: : prob_grad(0) {
- 36: ctor_body(context__, 0, pstream__);
- 37: }
- 38:
- 39: modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1(stan::io::var_context& context__,
- 40: unsigned int random_seed__,
- 41: std::ostream* pstream__ = 0)
- 42: : prob_grad(0) {
- 43: ctor_body(context__, random_seed__, pstream__);
- 44: }
- 45:
- 46: void ctor_body(stan::io::var_context& context__,
- 47: unsigned int random_seed__,
- 48: std::ostream* pstream__) {
- 49: typedef double local_scalar_t__;
- 50:
- 51: boost::ecuyer1988 base_rng__ =
- 52: stan::services::util::create_rng(random_seed__, 0);
- 53: (void) base_rng__; // suppress unused var warning
- 54:
- 55: current_statement_begin__ = -1;
- 56:
- 57: static const char* function__ = "modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1";
- 58: (void) function__; // dummy to suppress unused var warning
- 59: size_t pos__;
- 60: (void) pos__; // dummy to suppress unused var warning
- 61: std::vector<int> vals_i__;
- 62: std::vector<double> vals_r__;
- 63: local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());
- 64: (void) DUMMY_VAR__; // suppress unused var warning
- 65:
- 66: // initialize member variables
- 67: try {
- 68:
- 69: // validate, data variables
- 70: // initialize data variables
- 71:
- 72:
- 73: // validate transformed data
- 74:
- 75: // validate, set parameter ranges
- 76: num_params_r__ = 0U;
- 77: param_ranges_i__.clear();
- 78: current_statement_begin__ = 1;
- 79: ++num_params_r__;
- 80: } catch (const std::exception& e) {
- 81: stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__());
- 82: // Next line prevents compiler griping about no return
- 83: throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***");
- 84: }
- 85: }
- 86:
- 87: ~modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1() { }
- 88:
- 89:
- 90: void transform_inits(const stan::io::var_context& context__,
- 91: std::vector<int>& params_i__,
- 92: std::vector<double>& params_r__,
- 93: std::ostream* pstream__) const {
- 94: stan::io::writer<double> writer__(params_r__,params_i__);
- 95: size_t pos__;
- 96: (void) pos__; // dummy call to supress warning
- 97: std::vector<double> vals_r__;
- 98: std::vector<int> vals_i__;
- 99:
- 100: if (!(context__.contains_r("theta")))
- 101: throw std::runtime_error("variable theta missing");
- 102: vals_r__ = context__.vals_r("theta");
- 103: pos__ = 0U;
- 104: context__.validate_dims("initialization", "theta", "double", context__.to_vec());
- 105: double theta(0);
- 106: theta = vals_r__[pos__++];
- 107: try {
- 108: writer__.scalar_unconstrain(theta);
- 109: } catch (const std::exception& e) {
- 110: throw std::runtime_error(std::string("Error transforming variable theta: ") + e.what());
- 111: }
- 112:
- 113: params_r__ = writer__.data_r();
- 114: params_i__ = writer__.data_i();
- 115: }
- 116:
- 117: void transform_inits(const stan::io::var_context& context,
- 118: Eigen::Matrix<double,Eigen::Dynamic,1>& params_r,
- 119: std::ostream* pstream__) const {
- 120: std::vector<double> params_r_vec;
- 121: std::vector<int> params_i_vec;
- 122: transform_inits(context, params_i_vec, params_r_vec, pstream__);
- 123: params_r.resize(params_r_vec.size());
- 124: for (int i = 0; i < params_r.size(); ++i)
- 125: params_r(i) = params_r_vec[i];
- 126: }
- 127:
- 128:
- 129: template <bool propto__, bool jacobian__, typename T__>
- 130: T__ log_prob(vector<T__>& params_r__,
- 131: vector<int>& params_i__,
- 132: std::ostream* pstream__ = 0) const {
- 133:
- 134: typedef T__ local_scalar_t__;
- 135:
- 136: local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());
- 137: (void) DUMMY_VAR__; // suppress unused var warning
- 138:
- 139: T__ lp__(0.0);
- 140: stan::math::accumulator<T__> lp_accum__;
- 141:
- 142: try {
- 143: // model parameters
- 144: stan::io::reader<local_scalar_t__> in__(params_r__,params_i__);
- 145:
- 146: local_scalar_t__ theta;
- 147: (void) theta; // dummy to suppress unused var warning
- 148: if (jacobian__)
- 149: theta = in__.scalar_constrain(lp__);
- 150: else
- 151: theta = in__.scalar_constrain();
- 152:
- 153:
- 154: // transformed parameters
- 155:
- 156:
- 157:
- 158: // validate transformed parameters
- 159:
- 160: const char* function__ = "validate transformed params";
- 161: (void) function__; // dummy to suppress unused var warning
- 162:
- 163: // model body
- 164:
- 165: } catch (const std::exception& e) {
- 166: stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__());
- 167: // Next line prevents compiler griping about no return
- 168: throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***");
- 169: }
- 170:
- 171: lp_accum__.add(lp__);
- 172: return lp_accum__.sum();
- 173:
- 174: } // log_prob()
- 175:
- 176: template <bool propto, bool jacobian, typename T_>
- 177: T_ log_prob(Eigen::Matrix<T_,Eigen::Dynamic,1>& params_r,
- 178: std::ostream* pstream = 0) const {
- 179: std::vector<T_> vec_params_r;
- 180: vec_params_r.reserve(params_r.size());
- 181: for (int i = 0; i < params_r.size(); ++i)
- 182: vec_params_r.push_back(params_r(i));
- 183: std::vector<int> vec_params_i;
- 184: return log_prob<propto,jacobian,T_>(vec_params_r, vec_params_i, pstream);
- 185: }
- 186:
- 187:
- 188: void get_param_names(std::vector<std::string>& names__) const {
- 189: names__.resize(0);
- 190: names__.push_back("theta");
- 191: }
- 192:
- 193:
- 194: void get_dims(std::vector<std::vector<size_t> >& dimss__) const {
- 195: dimss__.resize(0);
- 196: std::vector<size_t> dims__;
- 197: dims__.resize(0);
- 198: dimss__.push_back(dims__);
- 199: }
- 200:
- 201: template <typename RNG>
- 202: void write_array(RNG& base_rng__,
- 203: std::vector<double>& params_r__,
- 204: std::vector<int>& params_i__,
- 205: std::vector<double>& vars__,
- 206: bool include_tparams__ = true,
- 207: bool include_gqs__ = true,
- 208: std::ostream* pstream__ = 0) const {
- 209: typedef double local_scalar_t__;
- 210:
- 211: vars__.resize(0);
- 212: stan::io::reader<local_scalar_t__> in__(params_r__,params_i__);
- 213: static const char* function__ = "modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::write_array";
- 214: (void) function__; // dummy to suppress unused var warning
- 215: // read-transform, write parameters
- 216: double theta = in__.scalar_constrain();
- 217: vars__.push_back(theta);
- 218:
- 219: // declare and define transformed parameters
- 220: double lp__ = 0.0;
- 221: (void) lp__; // dummy to suppress unused var warning
- 222: stan::math::accumulator<double> lp_accum__;
- 223:
- 224: local_scalar_t__ DUMMY_VAR__(std::numeric_limits<double>::quiet_NaN());
- 225: (void) DUMMY_VAR__; // suppress unused var warning
- 226:
- 227: try {
- 228:
- 229:
- 230:
- 231: // validate transformed parameters
- 232:
- 233: // write transformed parameters
- 234: if (include_tparams__) {
- 235: }
- 236: if (!include_gqs__) return;
- 237: // declare and define generated quantities
- 238:
- 239:
- 240:
- 241: // validate generated quantities
- 242:
- 243: // write generated quantities
- 244: } catch (const std::exception& e) {
- 245: stan::lang::rethrow_located(e, current_statement_begin__, prog_reader__());
- 246: // Next line prevents compiler griping about no return
- 247: throw std::runtime_error("*** IF YOU SEE THIS, PLEASE REPORT A BUG ***");
- 248: }
- 249: }
- 250:
- 251: template <typename RNG>
- 252: void write_array(RNG& base_rng,
- 253: Eigen::Matrix<double,Eigen::Dynamic,1>& params_r,
- 254: Eigen::Matrix<double,Eigen::Dynamic,1>& vars,
- 255: bool include_tparams = true,
- 256: bool include_gqs = true,
- 257: std::ostream* pstream = 0) const {
- 258: std::vector<double> params_r_vec(params_r.size());
- 259: for (int i = 0; i < params_r.size(); ++i)
- 260: params_r_vec[i] = params_r(i);
- 261: std::vector<double> vars_vec;
- 262: std::vector<int> params_i_vec;
- 263: write_array(base_rng,params_r_vec,params_i_vec,vars_vec,include_tparams,include_gqs,pstream);
- 264: vars.resize(vars_vec.size());
- 265: for (int i = 0; i < vars.size(); ++i)
- 266: vars(i) = vars_vec[i];
- 267: }
- 268:
- 269: static std::string model_name() {
- 270: return "modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1";
- 271: }
- 272:
- 273:
- 274: void constrained_param_names(std::vector<std::string>& param_names__,
- 275: bool include_tparams__ = true,
- 276: bool include_gqs__ = true) const {
- 277: std::stringstream param_name_stream__;
- 278: param_name_stream__.str(std::string());
- 279: param_name_stream__ << "theta";
- 280: param_names__.push_back(param_name_stream__.str());
- 281:
- 282: if (!include_gqs__ && !include_tparams__) return;
- 283:
- 284: if (include_tparams__) {
- 285: }
- 286:
- 287:
- 288: if (!include_gqs__) return;
- 289: }
- 290:
- 291:
- 292: void unconstrained_param_names(std::vector<std::string>& param_names__,
- 293: bool include_tparams__ = true,
- 294: bool include_gqs__ = true) const {
- 295: std::stringstream param_name_stream__;
- 296: param_name_stream__.str(std::string());
- 297: param_name_stream__ << "theta";
- 298: param_names__.push_back(param_name_stream__.str());
- 299:
- 300: if (!include_gqs__ && !include_tparams__) return;
- 301:
- 302: if (include_tparams__) {
- 303: }
- 304:
- 305:
- 306: if (!include_gqs__) return;
- 307: }
- 308:
- 309: }; // model
- 310:
- 311: }
- 312:
- 313: typedef modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1 stan_model;
- 314:
- 315: #include <rstan/rstaninc.hpp>
- 316: /**
- 317: * Define Rcpp Module to expose stan_fit's functions to R.
- 318: */
- 319: RCPP_MODULE(stan_fit4modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_mod){
- 320: Rcpp::class_<rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1,
- 321: boost::random::ecuyer1988> >("stan_fit4modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1")
- 322: // .constructor<Rcpp::List>()
- 323: .constructor<SEXP, SEXP, SEXP>()
- 324: // .constructor<SEXP, SEXP>()
- 325: .method("call_sampler",
- 326: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::call_sampler)
- 327: .method("param_names",
- 328: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::param_names)
- 329: .method("param_names_oi",
- 330: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::param_names_oi)
- 331: .method("param_fnames_oi",
- 332: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::param_fnames_oi)
- 333: .method("param_dims",
- 334: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::param_dims)
- 335: .method("param_dims_oi",
- 336: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::param_dims_oi)
- 337: .method("update_param_oi",
- 338: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::update_param_oi)
- 339: .method("param_oi_tidx",
- 340: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::param_oi_tidx)
- 341: .method("grad_log_prob",
- 342: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::grad_log_prob)
- 343: .method("log_prob",
- 344: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::log_prob)
- 345: .method("unconstrain_pars",
- 346: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::unconstrain_pars)
- 347: .method("constrain_pars",
- 348: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::constrain_pars)
- 349: .method("num_pars_unconstrained",
- 350: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::num_pars_unconstrained)
- 351: .method("unconstrained_param_names",
- 352: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::unconstrained_param_names)
- 353: .method("constrained_param_names",
- 354: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::constrained_param_names)
- 355: .method("standalone_gqs",
- 356: &rstan::stan_fit<modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1_namespace::modele4b84ad9055d_93a9e2036bfe1f95ff51d18d02ea73e1, boost::random::ecuyer1988>::standalone_gqs)
- 357: ;
- 358: }
- 359:
- 360: // declarations
- 361: extern "C" {
- 362: SEXP filee4b82f993333( ) ;
- 363: }
- 364:
- 365: // definition
- 366:
- 367: SEXP filee4b82f993333( ){
- 368: return Rcpp::wrap("93a9e2036bfe1f95ff51d18d02ea73e1");
- 369: }
- 370:
- 371:
Add Comment
Please, Sign In to add comment