1 #ifndef STAN_LANG_AST_FUN_IS_USER_DEFINED_PROB_FUNCTION_DEF_HPP 2 #define STAN_LANG_AST_FUN_IS_USER_DEFINED_PROB_FUNCTION_DEF_HPP 13 const std::vector<expression>& params) {
14 std::vector<expression> variate_params;
15 variate_params.push_back(variate);
16 for (
size_t i = 0; i < params.size(); ++i)
17 variate_params.push_back(params[i]);
Probability, optimization and sampling library.
bool is_user_defined_prob_function(const std::string &name, const expression &variate, const std::vector< expression > ¶ms)
Return true if a probability function with the specified name, random variate and parameters is user ...
bool is_user_defined(const fun &fx)
Return true if the specified function was declared in the functions block.