1 #ifndef STAN_LANG_AST_FUN_IS_USER_DEFINED_DEF_HPP 2 #define STAN_LANG_AST_FUN_IS_USER_DEFINED_DEF_HPP 17 const std::vector<expression>& args) {
18 std::vector<expr_type> arg_types;
19 for (
size_t i = 0; i < args.size(); ++i)
20 arg_types.push_back(args[i].expression_type());
27 std::pair<std::string, function_signature_t>
Probability, optimization and sampling library.
static function_signatures & instance()
Return the instance of this singleton.
std::vector< expression > args_
Sequence of argument expressions for function.
Structure for function application.
int get_signature_matches(const std::string &name, const std::vector< expr_type > &args, function_signature_t &signature)
Return the number of declared function signatures match for the specified name, argument types...
std::string name_
Name of function being applied.
bool is_user_defined(const std::pair< std::string, function_signature_t > &name_sig)
Return true if the specified name and signature have been added as user-defined functions.
std::pair< expr_type, std::vector< expr_type > > function_signature_t
The type of a function signature, mapping a vector of argument expression types to a result expressio...
bool is_user_defined(const fun &fx)
Return true if the specified function was declared in the functions block.