![]() |
Stan
2.14.0
probability, sampling & optimization
|
AST node for assignment statements. More...
#include <assignment.hpp>
Public Member Functions | |
| assignment () | |
| Construct an empty assignment. More... | |
| assignment (variable_dims &var_dims, expression &expr) | |
| Construct an assignment with an indexed variable and value. More... | |
Public Attributes | |
| variable_dims | var_dims_ |
| Variable plus indexes. More... | |
| expression | expr_ |
| Value being assigned, which appears on the right hand side of the assignment. More... | |
| base_var_decl | var_type_ |
| Type of the left hand side variable before indexing. More... | |
AST node for assignment statements.
Definition at line 14 of file assignment.hpp.
| stan::lang::assignment::assignment | ( | ) |
Construct an empty assignment.
Definition at line 9 of file assignment_def.hpp.
| stan::lang::assignment::assignment | ( | variable_dims & | var_dims, |
| expression & | expr | ||
| ) |
Construct an assignment with an indexed variable and value.
| var_dims | variable and array/matrix indexes |
| expr | right hand side, value being assigned to indexed variable |
Definition at line 11 of file assignment_def.hpp.
| expression stan::lang::assignment::expr_ |
Value being assigned, which appears on the right hand side of the assignment.
Definition at line 39 of file assignment.hpp.
| variable_dims stan::lang::assignment::var_dims_ |
Variable plus indexes.
For example, a[2,3] for variable a and indexes 2 and 3
Definition at line 33 of file assignment.hpp.
| base_var_decl stan::lang::assignment::var_type_ |
Type of the left hand side variable before indexing.
Definition at line 44 of file assignment.hpp.