![]() |
Stan
2.14.0
probability, sampling & optimization
|
AST structure for holding an expression with a sequence of indexes. More...
#include <index_op_sliced.hpp>
Public Member Functions | |
index_op_sliced () | |
Construct a default indexed expression (all nil). More... | |
index_op_sliced (const expression &expr, const std::vector< idx > &idxs) | |
Construct an indexed expression from the specified expression and indexes. More... | |
void | infer_type () |
Infer the type of the result. More... | |
Public Attributes | |
expression | expr_ |
Expression being indexed. More... | |
std::vector< idx > | idxs_ |
Sequence of indexes. More... | |
expr_type | type_ |
Type of result. More... | |
AST structure for holding an expression with a sequence of indexes.
Definition at line 16 of file index_op_sliced.hpp.
stan::lang::index_op_sliced::index_op_sliced | ( | ) |
Construct a default indexed expression (all nil).
Definition at line 10 of file index_op_sliced_def.hpp.
stan::lang::index_op_sliced::index_op_sliced | ( | const expression & | expr, |
const std::vector< idx > & | idxs | ||
) |
Construct an indexed expression from the specified expression and indexes.
expr | expression being indexed |
idxs | indexes |
Definition at line 12 of file index_op_sliced_def.hpp.
void stan::lang::index_op_sliced::infer_type | ( | ) |
Infer the type of the result.
Modifies the underlying expression type and not well formed until this is run.
Definition at line 16 of file index_op_sliced_def.hpp.
expression stan::lang::index_op_sliced::expr_ |
Expression being indexed.
Definition at line 20 of file index_op_sliced.hpp.
std::vector<idx> stan::lang::index_op_sliced::idxs_ |
Sequence of indexes.
Definition at line 25 of file index_op_sliced.hpp.
expr_type stan::lang::index_op_sliced::type_ |
Type of result.
Definition at line 30 of file index_op_sliced.hpp.