![]() |
Stan
2.5.0
probability, sampling & optimization
|
#include <ast.hpp>
Public Member Functions | |
| void | set_user_defined (const std::pair< std::string, function_signature_t > &name_sig) |
| bool | is_user_defined (const std::pair< std::string, function_signature_t > &name_sig) |
| void | add (const std::string &name, const expr_type &result_type, const std::vector< expr_type > &arg_types) |
| void | add (const std::string &name, const expr_type &result_type) |
| void | add (const std::string &name, const expr_type &result_type, const expr_type &arg_type) |
| void | add (const std::string &name, const expr_type &result_type, const expr_type &arg_type1, const expr_type &arg_type2) |
| void | add (const std::string &name, const expr_type &result_type, const expr_type &arg_type1, const expr_type &arg_type2, const expr_type &arg_type3) |
| void | add (const std::string &name, const expr_type &result_type, const expr_type &arg_type1, const expr_type &arg_type2, const expr_type &arg_type3, const expr_type &arg_type4) |
| void | add (const std::string &name, const expr_type &result_type, const expr_type &arg_type1, const expr_type &arg_type2, const expr_type &arg_type3, const expr_type &arg_type4, const expr_type &arg_type5) |
| void | add (const std::string &name, const expr_type &result_type, const expr_type &arg_type1, const expr_type &arg_type2, const expr_type &arg_type3, const expr_type &arg_type4, const expr_type &arg_type5, const expr_type &arg_type6) |
| void | add (const std::string &name, const expr_type &result_type, const expr_type &arg_type1, const expr_type &arg_type2, const expr_type &arg_type3, const expr_type &arg_type4, const expr_type &arg_type5, const expr_type &arg_type6, const expr_type &arg_type7) |
| void | add_nullary (const ::std::string &name) |
| void | add_unary (const ::std::string &name) |
| void | add_binary (const ::std::string &name) |
| void | add_ternary (const ::std::string &name) |
| void | add_quaternary (const ::std::string &name) |
| int | num_promotions (const std::vector< expr_type > &call_args, const std::vector< expr_type > &sig_args) |
| expr_type | get_result_type (const std::string &name, const std::vector< expr_type > &args, std::ostream &error_msgs) |
| int | get_signature_matches (const std::string &name, const std::vector< expr_type > &args, function_signature_t &signature) |
| bool | is_defined (const std::string &name, const function_signature_t &sig) |
| std::set< std::string > | key_set () const |
Static Public Member Functions | |
| static function_signatures & | instance () |
| static void | reset_sigs () |
| void stan::gm::function_signatures::add | ( | const std::string & | name, |
| const expr_type & | result_type, | ||
| const std::vector< expr_type > & | arg_types | ||
| ) |
Definition at line 171 of file ast_def.cpp.
| void stan::gm::function_signatures::add | ( | const std::string & | name, |
| const expr_type & | result_type | ||
| ) |
Definition at line 177 of file ast_def.cpp.
| void stan::gm::function_signatures::add | ( | const std::string & | name, |
| const expr_type & | result_type, | ||
| const expr_type & | arg_type | ||
| ) |
Definition at line 182 of file ast_def.cpp.
| void stan::gm::function_signatures::add | ( | const std::string & | name, |
| const expr_type & | result_type, | ||
| const expr_type & | arg_type1, | ||
| const expr_type & | arg_type2 | ||
| ) |
Definition at line 189 of file ast_def.cpp.
| void stan::gm::function_signatures::add | ( | const std::string & | name, |
| const expr_type & | result_type, | ||
| const expr_type & | arg_type1, | ||
| const expr_type & | arg_type2, | ||
| const expr_type & | arg_type3 | ||
| ) |
Definition at line 198 of file ast_def.cpp.
| void stan::gm::function_signatures::add | ( | const std::string & | name, |
| const expr_type & | result_type, | ||
| const expr_type & | arg_type1, | ||
| const expr_type & | arg_type2, | ||
| const expr_type & | arg_type3, | ||
| const expr_type & | arg_type4 | ||
| ) |
Definition at line 209 of file ast_def.cpp.
| void stan::gm::function_signatures::add | ( | const std::string & | name, |
| const expr_type & | result_type, | ||
| const expr_type & | arg_type1, | ||
| const expr_type & | arg_type2, | ||
| const expr_type & | arg_type3, | ||
| const expr_type & | arg_type4, | ||
| const expr_type & | arg_type5 | ||
| ) |
Definition at line 222 of file ast_def.cpp.
| void stan::gm::function_signatures::add | ( | const std::string & | name, |
| const expr_type & | result_type, | ||
| const expr_type & | arg_type1, | ||
| const expr_type & | arg_type2, | ||
| const expr_type & | arg_type3, | ||
| const expr_type & | arg_type4, | ||
| const expr_type & | arg_type5, | ||
| const expr_type & | arg_type6 | ||
| ) |
Definition at line 237 of file ast_def.cpp.
| void stan::gm::function_signatures::add | ( | const std::string & | name, |
| const expr_type & | result_type, | ||
| const expr_type & | arg_type1, | ||
| const expr_type & | arg_type2, | ||
| const expr_type & | arg_type3, | ||
| const expr_type & | arg_type4, | ||
| const expr_type & | arg_type5, | ||
| const expr_type & | arg_type6, | ||
| const expr_type & | arg_type7 | ||
| ) |
Definition at line 254 of file ast_def.cpp.
| void stan::gm::function_signatures::add_binary | ( | const ::std::string & | name | ) |
Definition at line 279 of file ast_def.cpp.
| void stan::gm::function_signatures::add_nullary | ( | const ::std::string & | name | ) |
Definition at line 273 of file ast_def.cpp.
| void stan::gm::function_signatures::add_quaternary | ( | const ::std::string & | name | ) |
Definition at line 285 of file ast_def.cpp.
| void stan::gm::function_signatures::add_ternary | ( | const ::std::string & | name | ) |
Definition at line 282 of file ast_def.cpp.
| void stan::gm::function_signatures::add_unary | ( | const ::std::string & | name | ) |
Definition at line 276 of file ast_def.cpp.
| expr_type stan::gm::function_signatures::get_result_type | ( | const std::string & | name, |
| const std::vector< expr_type > & | args, | ||
| std::ostream & | error_msgs | ||
| ) |
Definition at line 329 of file ast_def.cpp.
| int stan::gm::function_signatures::get_signature_matches | ( | const std::string & | name, |
| const std::vector< expr_type > & | args, | ||
| function_signature_t & | signature | ||
| ) |
Definition at line 307 of file ast_def.cpp.
|
static |
Definition at line 143 of file ast_def.cpp.
| bool stan::gm::function_signatures::is_defined | ( | const std::string & | name, |
| const function_signature_t & | sig | ||
| ) |
Definition at line 163 of file ast_def.cpp.
| bool stan::gm::function_signatures::is_user_defined | ( | const std::pair< std::string, function_signature_t > & | name_sig | ) |
Definition at line 157 of file ast_def.cpp.
| std::set< std::string > stan::gm::function_signatures::key_set | ( | ) | const |
Definition at line 380 of file ast_def.cpp.
| int stan::gm::function_signatures::num_promotions | ( | const std::vector< expr_type > & | call_args, |
| const std::vector< expr_type > & | sig_args | ||
| ) |
Definition at line 288 of file ast_def.cpp.
|
static |
Definition at line 138 of file ast_def.cpp.
| void stan::gm::function_signatures::set_user_defined | ( | const std::pair< std::string, function_signature_t > & | name_sig | ) |
Definition at line 150 of file ast_def.cpp.