![]() |
Stan
2.14.0
probability, sampling & optimization
|
AST node for assignment to variable with multi-indexing. More...
#include <assgn.hpp>
Public Member Functions | |
| assgn () | |
| Construct an uninitialized assignment statement. More... | |
| assgn (const variable &lhs_var, const std::vector< idx > &idxs, const expression &rhs) | |
| Constrcut an assignment statement with the specified variable, indexing, and right-hand side expression. More... | |
| bool | lhs_var_occurs_on_rhs () const |
| Return true if the variable being assigned is a subexpression of the value expression. More... | |
Public Attributes | |
| variable | lhs_var_ |
| The variable being assigned. More... | |
| std::vector< idx > | idxs_ |
| Position(s) in variable being assigned. More... | |
| expression | rhs_ |
| Value being assigned to left hand side variable at indexing position. More... | |
| stan::lang::assgn::assgn | ( | ) |
Construct an uninitialized assignment statement.
Definition at line 10 of file assgn_def.hpp.
| stan::lang::assgn::assgn | ( | const variable & | lhs_var, |
| const std::vector< idx > & | idxs, | ||
| const expression & | rhs | ||
| ) |
Constrcut an assignment statement with the specified variable, indexing, and right-hand side expression.
| [in] | lhs_var | variable being assigned |
| [in] | idxs | sequence of indexes indicating element being assigned |
| [in] | rhs | value of assignment |
Definition at line 12 of file assgn_def.hpp.
| bool stan::lang::assgn::lhs_var_occurs_on_rhs | ( | ) | const |
Return true if the variable being assigned is a subexpression of the value expression.
Definition at line 16 of file assgn_def.hpp.
| std::vector<idx> stan::lang::assgn::idxs_ |
| variable stan::lang::assgn::lhs_var_ |
| expression stan::lang::assgn::rhs_ |