Stan  2.10.0
probability, sampling & optimization
Classes | Namespaces | Typedefs | Functions | Variables
ast.hpp File Reference
#include <boost/variant/recursive_variant.hpp>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

struct  stan::lang::nil
 Placeholder struct for boost::variant default ctors. More...
 
struct  stan::lang::expr_type
 
class  stan::lang::function_signatures
 
struct  stan::lang::statements
 
struct  stan::lang::distribution
 
struct  stan::lang::expression_type_vis
 
struct  stan::lang::expression
 
struct  stan::lang::printable
 
struct  stan::lang::is_nil_op
 
struct  stan::lang::variable_dims
 
struct  stan::lang::int_literal
 
struct  stan::lang::double_literal
 
struct  stan::lang::array_literal
 
struct  stan::lang::variable
 
struct  stan::lang::integrate_ode
 
struct  stan::lang::integrate_ode_control
 
struct  stan::lang::fun
 
struct  stan::lang::index_op
 
struct  stan::lang::conditional_op
 
struct  stan::lang::binary_op
 
struct  stan::lang::unary_op
 
struct  stan::lang::range
 
struct  stan::lang::uni_idx
 
struct  stan::lang::multi_idx
 
struct  stan::lang::omni_idx
 
struct  stan::lang::lb_idx
 
struct  stan::lang::ub_idx
 
struct  stan::lang::lub_idx
 
struct  stan::lang::idx
 
struct  stan::lang::is_multi_index_vis
 
struct  stan::lang::index_op_sliced
 
struct  stan::lang::base_var_decl
 
struct  stan::lang::variable_map
 
struct  stan::lang::int_var_decl
 
struct  stan::lang::double_var_decl
 
struct  stan::lang::unit_vector_var_decl
 
struct  stan::lang::simplex_var_decl
 
struct  stan::lang::ordered_var_decl
 
struct  stan::lang::positive_ordered_var_decl
 
struct  stan::lang::vector_var_decl
 
struct  stan::lang::row_vector_var_decl
 
struct  stan::lang::matrix_var_decl
 
struct  stan::lang::cholesky_factor_var_decl
 
struct  stan::lang::cholesky_corr_var_decl
 
struct  stan::lang::cov_matrix_var_decl
 
struct  stan::lang::corr_matrix_var_decl
 
struct  stan::lang::name_vis
 
struct  stan::lang::var_decl_base_type_vis
 
struct  stan::lang::var_decl
 
struct  stan::lang::statement
 
struct  stan::lang::is_no_op_statement_vis
 
struct  stan::lang::returns_type_vis
 
struct  stan::lang::increment_log_prob_statement
 
struct  stan::lang::for_statement
 
struct  stan::lang::conditional_statement
 
struct  stan::lang::while_statement
 
struct  stan::lang::print_statement
 
struct  stan::lang::reject_statement
 
struct  stan::lang::return_statement
 
struct  stan::lang::no_op_statement
 
struct  stan::lang::arg_decl
 
struct  stan::lang::function_decl_def
 
struct  stan::lang::function_decl_defs
 
struct  stan::lang::program
 
struct  stan::lang::sample
 
struct  stan::lang::assignment
 
struct  stan::lang::var_occurs_vis
 
struct  stan::lang::assgn
 
struct  stan::lang::contains_var
 
struct  stan::lang::contains_nonparam_var
 

Namespaces

 stan
 Probability, optimization and sampling library.
 
 stan::lang
 

Typedefs

typedef int stan::lang::base_expr_type
 
typedef int stan::lang::var_origin
 
typedef std::pair< expr_type, std::vector< expr_type > > stan::lang::function_signature_t
 

Functions

bool stan::lang::is_data_origin (const var_origin &vo)
 
void stan::lang::print_var_origin (std::ostream &o, const var_origin &vo)
 
std::ostream & stan::lang::write_base_expr_type (std::ostream &o, base_expr_type type)
 
std::ostream & stan::lang::operator<< (std::ostream &o, const expr_type &et)
 
expr_type stan::lang::promote_primitive (const expr_type &et)
 
expr_type stan::lang::promote_primitive (const expr_type &et1, const expr_type &et2)
 
bool stan::lang::is_nil (const expression &e)
 
size_t stan::lang::total_dims (const std::vector< std::vector< expression > > &dimss)
 
expr_type stan::lang::infer_type_indexing (const base_expr_type &expr_base_type, size_t num_expr_dims, size_t num_index_dims)
 
expr_type stan::lang::infer_type_indexing (const expression &expr, size_t num_index_dims)
 
bool stan::lang::is_multi_index (const idx &idx)
 
bool stan::lang::returns_type (const expr_type &return_type, const statement &statement, std::ostream &error_msgs)
 
expr_type stan::lang::indexed_type (const expression &e, const std::vector< idx > &idxs)
 Return the type of the expression indexed by the generalized index sequence. More...
 
void stan::lang::generate_expression (const expression &e, std::ostream &o)
 
void stan::lang::generate_expression (const expression &e, bool user_facing, std::ostream &o)
 
bool stan::lang::has_rng_suffix (const std::string &s)
 
bool stan::lang::has_lp_suffix (const std::string &s)
 
bool stan::lang::is_user_defined (const std::string &name, const std::vector< expression > &args)
 
bool stan::lang::is_user_defined_prob_function (const std::string &name, const expression &variate, const std::vector< expression > &params)
 
bool stan::lang::is_user_defined (const fun &fx)
 
bool stan::lang::has_var (const expression &e, const variable_map &var_map)
 
bool stan::lang::has_non_param_var (const expression &e, const variable_map &var_map)
 
bool stan::lang::is_assignable (const expr_type &l_type, const expr_type &r_type, const std::string &failure_message, std::ostream &error_msgs)
 
bool stan::lang::ends_with (const std::string &suffix, const std::string &s)
 
std::string stan::lang::get_cdf (const std::string &dist_name)
 
std::string stan::lang::get_ccdf (const std::string &dist_name)
 
std::string stan::lang::get_prob_fun (const std::string &dist_name)
 
bool stan::lang::has_prob_fun_suffix (const std::string &name)
 
std::string stan::lang::strip_prob_fun_suffix (const std::string &dist_fun)
 
bool stan::lang::has_cdf_suffix (const std::string &name)
 
std::string stan::lang::strip_cdf_suffix (const std::string &dist_fun)
 
bool stan::lang::has_ccdf_suffix (const std::string &name)
 
std::string stan::lang::strip_ccdf_suffix (const std::string &dist_fun)
 
bool stan::lang::fun_name_exists (const std::string &name)
 

Variables

const int stan::lang::VOID_T = 0
 
const int stan::lang::INT_T = 1
 
const int stan::lang::DOUBLE_T = 2
 
const int stan::lang::VECTOR_T = 3
 
const int stan::lang::ROW_VECTOR_T = 4
 
const int stan::lang::MATRIX_T = 5
 
const int stan::lang::ILL_FORMED_T = 6
 
const int stan::lang::model_name_origin = 0
 
const int stan::lang::data_origin = 1
 
const int stan::lang::transformed_data_origin = 2
 
const int stan::lang::parameter_origin = 3
 
const int stan::lang::transformed_parameter_origin = 4
 
const int stan::lang::derived_origin = 5
 
const int stan::lang::local_origin = 6
 
const int stan::lang::function_argument_origin = 7
 
const int stan::lang::function_argument_origin_lp = 8
 
const int stan::lang::function_argument_origin_rng = 9
 
const int stan::lang::void_function_argument_origin = 10
 
const int stan::lang::void_function_argument_origin_lp = 11
 
const int stan::lang::void_function_argument_origin_rng = 12
 

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