![]() |
Stan
2.14.0
probability, sampling & optimization
|
AST base class for variable declarations, which share most of their structure. More...
#include <base_var_decl.hpp>
Public Member Functions | |
base_var_decl () | |
Construct a default base variable declaration. More... | |
base_var_decl (const base_expr_type &base_type) | |
Construct a base variable declaration of the specified type. More... | |
base_var_decl (const std::string &name, const std::vector< expression > &dims, const base_expr_type &base_type) | |
Construct a base variable declaration with the specified name, dimensions, and base type. More... | |
base_var_decl (const std::string &name, const std::vector< expression > &dims, const base_expr_type &base_type, const expression &def) | |
Construct a base variable declaration with the specified name, dimensions, base type, and definition. More... | |
Public Attributes | |
std::string | name_ |
Name of the variable. More... | |
std::vector< expression > | dims_ |
Dimension sizes for variable. More... | |
base_expr_type | base_type_ |
Base type for variable. More... | |
expression | def_ |
Definition for variable (nil if undefined). More... | |
AST base class for variable declarations, which share most of their structure.
Definition at line 16 of file base_var_decl.hpp.
stan::lang::base_var_decl::base_var_decl | ( | ) |
Construct a default base variable declaration.
Definition at line 11 of file base_var_decl_def.hpp.
stan::lang::base_var_decl::base_var_decl | ( | const base_expr_type & | base_type | ) |
Construct a base variable declaration of the specified type.
base_type | base type for variable |
Definition at line 13 of file base_var_decl_def.hpp.
stan::lang::base_var_decl::base_var_decl | ( | const std::string & | name, |
const std::vector< expression > & | dims, | ||
const base_expr_type & | base_type | ||
) |
Construct a base variable declaration with the specified name, dimensions, and base type.
The definition is set to nil.
name | name of variable |
dims | dimensions of variables |
base_type | base expression type of variable |
Definition at line 16 of file base_var_decl_def.hpp.
stan::lang::base_var_decl::base_var_decl | ( | const std::string & | name, |
const std::vector< expression > & | dims, | ||
const base_expr_type & | base_type, | ||
const expression & | def | ||
) |
Construct a base variable declaration with the specified name, dimensions, base type, and definition.
name | name of variable |
dims | dimensions of variables |
base_type | base expression type of variable |
def | definition of expression |
Definition at line 21 of file base_var_decl_def.hpp.
base_expr_type stan::lang::base_var_decl::base_type_ |
Base type for variable.
Definition at line 30 of file base_var_decl.hpp.
expression stan::lang::base_var_decl::def_ |
Definition for variable (nil if undefined).
Definition at line 35 of file base_var_decl.hpp.
std::vector<expression> stan::lang::base_var_decl::dims_ |
Dimension sizes for variable.
Definition at line 25 of file base_var_decl.hpp.
std::string stan::lang::base_var_decl::name_ |
Name of the variable.
Definition at line 20 of file base_var_decl.hpp.