![]() |
Stan
2.14.0
probability, sampling & optimization
|
AST variant structure for indexes, holding any of a unary, multi, omni, lower-bound, upper-bound, or lower- and upper-bound index. More...
#include <idx.hpp>
Public Types | |
typedef boost::variant< boost::recursive_wrapper< uni_idx >, boost::recursive_wrapper< multi_idx >, boost::recursive_wrapper< omni_idx >, boost::recursive_wrapper< lb_idx >, boost::recursive_wrapper< ub_idx >, boost::recursive_wrapper< lub_idx > > | idx_t |
Variant type for the six index types. More... | |
Public Member Functions | |
idx () | |
Construct a default index. More... | |
idx (const uni_idx &i) | |
Construct a unary index with specified index. More... | |
idx (const multi_idx &i) | |
Construct a multiple index with specified index. More... | |
idx (const omni_idx &i) | |
Construct a universal index with specified index. More... | |
idx (const lb_idx &i) | |
Construct a lower-bound index with specified index. More... | |
idx (const ub_idx &i) | |
Construct an upper-bound index with specified index. More... | |
idx (const lub_idx &i) | |
Construct a lower- and upper-bound index with specified index. More... | |
Public Attributes | |
idx_t | idx_ |
The index variant object. More... | |
AST variant structure for indexes, holding any of a unary, multi, omni, lower-bound, upper-bound, or lower- and upper-bound index.
stan::lang::idx::idx | ( | ) |
Construct a default index.
Definition at line 9 of file idx_def.hpp.
stan::lang::idx::idx | ( | const uni_idx & | i | ) |
Construct a unary index with specified index.
i | index |
Definition at line 11 of file idx_def.hpp.
stan::lang::idx::idx | ( | const multi_idx & | i | ) |
Construct a multiple index with specified index.
i | index |
Definition at line 13 of file idx_def.hpp.
stan::lang::idx::idx | ( | const omni_idx & | i | ) |
Construct a universal index with specified index.
i | index |
Definition at line 15 of file idx_def.hpp.
stan::lang::idx::idx | ( | const lb_idx & | i | ) |
Construct a lower-bound index with specified index.
i | index |
Definition at line 17 of file idx_def.hpp.
stan::lang::idx::idx | ( | const ub_idx & | i | ) |
Construct an upper-bound index with specified index.
i | index |
Definition at line 19 of file idx_def.hpp.
stan::lang::idx::idx | ( | const lub_idx & | i | ) |
Construct a lower- and upper-bound index with specified index.
i | index |
Definition at line 21 of file idx_def.hpp.