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

#include <ast.hpp>

Public Member Functions

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_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)
 

Static Public Member Functions

static function_signaturesinstance ()
 

Detailed Description

Definition at line 89 of file ast.hpp.

Member Function Documentation

◆ add() [1/7]

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

Definition at line 124 of file ast_def.cpp.

◆ add() [2/7]

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

Definition at line 129 of file ast_def.cpp.

◆ add() [3/7]

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

◆ add() [4/7]

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

◆ add() [5/7]

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

◆ add() [6/7]

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

◆ add() [7/7]

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

◆ add_binary()

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

Definition at line 190 of file ast_def.cpp.

◆ add_nullary()

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

Definition at line 184 of file ast_def.cpp.

◆ add_quaternary()

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

Definition at line 196 of file ast_def.cpp.

◆ add_ternary()

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

Definition at line 193 of file ast_def.cpp.

◆ add_unary()

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

Definition at line 187 of file ast_def.cpp.

◆ get_result_type()

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

◆ instance()

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

Definition at line 112 of file ast_def.cpp.

◆ num_promotions()

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

Definition at line 199 of file ast_def.cpp.


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

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