![]() |
Stan
2.10.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, bool sampling_error_style=false) |
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 |
bool | has_key (const std::string &key) const |
Static Public Member Functions | |
static function_signatures & | instance () |
static void | reset_sigs () |
void stan::lang::function_signatures::add | ( | const std::string & | name, |
const expr_type & | result_type, | ||
const std::vector< expr_type > & | arg_types | ||
) |
Definition at line 180 of file ast_def.cpp.
void stan::lang::function_signatures::add | ( | const std::string & | name, |
const expr_type & | result_type | ||
) |
Definition at line 185 of file ast_def.cpp.
void stan::lang::function_signatures::add | ( | const std::string & | name, |
const expr_type & | result_type, | ||
const expr_type & | arg_type | ||
) |
Definition at line 190 of file ast_def.cpp.
void stan::lang::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 197 of file ast_def.cpp.
void stan::lang::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 206 of file ast_def.cpp.
void stan::lang::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 217 of file ast_def.cpp.
void stan::lang::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 230 of file ast_def.cpp.
void stan::lang::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 245 of file ast_def.cpp.
void stan::lang::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 262 of file ast_def.cpp.
void stan::lang::function_signatures::add_binary | ( | const ::std::string & | name | ) |
Definition at line 287 of file ast_def.cpp.
void stan::lang::function_signatures::add_nullary | ( | const ::std::string & | name | ) |
Definition at line 281 of file ast_def.cpp.
void stan::lang::function_signatures::add_quaternary | ( | const ::std::string & | name | ) |
Definition at line 293 of file ast_def.cpp.
void stan::lang::function_signatures::add_ternary | ( | const ::std::string & | name | ) |
Definition at line 290 of file ast_def.cpp.
void stan::lang::function_signatures::add_unary | ( | const ::std::string & | name | ) |
Definition at line 284 of file ast_def.cpp.
expr_type stan::lang::function_signatures::get_result_type | ( | const std::string & | name, |
const std::vector< expr_type > & | args, | ||
std::ostream & | error_msgs, | ||
bool | sampling_error_style = false |
||
) |
Definition at line 422 of file ast_def.cpp.
int stan::lang::function_signatures::get_signature_matches | ( | const std::string & | name, |
const std::vector< expr_type > & | args, | ||
function_signature_t & | signature | ||
) |
Definition at line 315 of file ast_def.cpp.
bool stan::lang::function_signatures::has_key | ( | const std::string & | key | ) | const |
Definition at line 513 of file ast_def.cpp.
|
static |
Definition at line 150 of file ast_def.cpp.
bool stan::lang::function_signatures::is_defined | ( | const std::string & | name, |
const function_signature_t & | sig | ||
) |
Definition at line 170 of file ast_def.cpp.
bool stan::lang::function_signatures::is_user_defined | ( | const std::pair< std::string, function_signature_t > & | name_sig | ) |
Definition at line 164 of file ast_def.cpp.
std::set< std::string > stan::lang::function_signatures::key_set | ( | ) | const |
Definition at line 499 of file ast_def.cpp.
int stan::lang::function_signatures::num_promotions | ( | const std::vector< expr_type > & | call_args, |
const std::vector< expr_type > & | sig_args | ||
) |
Definition at line 296 of file ast_def.cpp.
|
static |
Definition at line 145 of file ast_def.cpp.
void stan::lang::function_signatures::set_user_defined | ( | const std::pair< std::string, function_signature_t > & | name_sig | ) |
Definition at line 157 of file ast_def.cpp.