Stan  2.13.1
probability, sampling & optimization
Public Member Functions | Static Public Member Functions | List of all members
stan::lang::function_signatures Class Reference

#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_unary_vectorized (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)
 
bool has_user_defined_key (const std::string &name) const
 
std::set< std::string > key_set () const
 
bool has_key (const std::string &key) const
 
bool discrete_first_arg (const std::string &name) const
 

Static Public Member Functions

static function_signaturesinstance ()
 
static void reset_sigs ()
 

Detailed Description

Definition at line 133 of file ast.hpp.

Member Function Documentation

§ add() [1/9]

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 201 of file ast_def.cpp.

§ add() [2/9]

void stan::lang::function_signatures::add ( const std::string &  name,
const expr_type result_type 
)

Definition at line 206 of file ast_def.cpp.

§ add() [3/9]

void stan::lang::function_signatures::add ( const std::string &  name,
const expr_type result_type,
const expr_type arg_type 
)

Definition at line 211 of file ast_def.cpp.

§ add() [4/9]

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 218 of file ast_def.cpp.

§ add() [5/9]

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 227 of file ast_def.cpp.

§ add() [6/9]

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 238 of file ast_def.cpp.

§ add() [7/9]

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 251 of file ast_def.cpp.

§ add() [8/9]

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 266 of file ast_def.cpp.

§ add() [9/9]

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 283 of file ast_def.cpp.

§ add_binary()

void stan::lang::function_signatures::add_binary ( const ::std::string &  name)

Definition at line 318 of file ast_def.cpp.

§ add_nullary()

void stan::lang::function_signatures::add_nullary ( const ::std::string &  name)

Definition at line 302 of file ast_def.cpp.

§ add_quaternary()

void stan::lang::function_signatures::add_quaternary ( const ::std::string &  name)

Definition at line 324 of file ast_def.cpp.

§ add_ternary()

void stan::lang::function_signatures::add_ternary ( const ::std::string &  name)

Definition at line 321 of file ast_def.cpp.

§ add_unary()

void stan::lang::function_signatures::add_unary ( const ::std::string &  name)

Definition at line 305 of file ast_def.cpp.

§ add_unary_vectorized()

void stan::lang::function_signatures::add_unary_vectorized ( const ::std::string &  name)

Definition at line 308 of file ast_def.cpp.

§ discrete_first_arg()

bool stan::lang::function_signatures::discrete_first_arg ( const std::string &  name) const

Definition at line 183 of file ast_def.cpp.

§ get_result_type()

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 453 of file ast_def.cpp.

§ get_signature_matches()

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 346 of file ast_def.cpp.

§ has_key()

bool stan::lang::function_signatures::has_key ( const std::string &  key) const

Definition at line 557 of file ast_def.cpp.

§ has_user_defined_key()

bool stan::lang::function_signatures::has_user_defined_key ( const std::string &  name) const

Definition at line 528 of file ast_def.cpp.

§ instance()

function_signatures & stan::lang::function_signatures::instance ( )
static

Definition at line 150 of file ast_def.cpp.

§ is_defined()

bool stan::lang::function_signatures::is_defined ( const std::string &  name,
const function_signature_t sig 
)

Definition at line 172 of file ast_def.cpp.

§ is_user_defined()

bool stan::lang::function_signatures::is_user_defined ( const std::pair< std::string, function_signature_t > &  name_sig)

Definition at line 166 of file ast_def.cpp.

§ key_set()

std::set< std::string > stan::lang::function_signatures::key_set ( ) const

Definition at line 543 of file ast_def.cpp.

§ num_promotions()

int stan::lang::function_signatures::num_promotions ( const std::vector< expr_type > &  call_args,
const std::vector< expr_type > &  sig_args 
)

Definition at line 327 of file ast_def.cpp.

§ reset_sigs()

void stan::lang::function_signatures::reset_sigs ( )
static

Definition at line 145 of file ast_def.cpp.

§ set_user_defined()

void stan::lang::function_signatures::set_user_defined ( const std::pair< std::string, function_signature_t > &  name_sig)

Definition at line 158 of file ast_def.cpp.


The documentation for this class was generated from the following files:

     [ Stan Home Page ] © 2011–2016, Stan Development Team.