![]() |
Stan
2.14.0
probability, sampling & optimization
|
Structure for visitor to extract the dimension sizes in a variable declaration variant type. More...
#include <var_decl_dims_vis.hpp>
Public Member Functions | |
var_decl_dims_vis () | |
Construt a dimensions visitor for variable declarations. More... | |
std::vector< expression > | operator() (const nil &x) const |
Return the sequence of dimension size expressions for the specified variable declaration (here, the empty vector). More... | |
std::vector< expression > | operator() (const int_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
std::vector< expression > | operator() (const double_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
std::vector< expression > | operator() (const vector_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
std::vector< expression > | operator() (const row_vector_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
std::vector< expression > | operator() (const matrix_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
std::vector< expression > | operator() (const simplex_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
std::vector< expression > | operator() (const unit_vector_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
std::vector< expression > | operator() (const ordered_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
std::vector< expression > | operator() (const positive_ordered_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
std::vector< expression > | operator() (const cholesky_factor_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
std::vector< expression > | operator() (const cholesky_corr_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
std::vector< expression > | operator() (const cov_matrix_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
std::vector< expression > | operator() (const corr_matrix_var_decl &x) const |
Return the sequence of dimension size expressions for the specified variable declaration. More... | |
Structure for visitor to extract the dimension sizes in a variable declaration variant type.
Definition at line 30 of file var_decl_dims_vis.hpp.
stan::lang::var_decl_dims_vis::var_decl_dims_vis | ( | ) |
Construt a dimensions visitor for variable declarations.
Definition at line 10 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const nil & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration (here, the empty vector).
x | variable declaration |
Definition at line 12 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const int_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 17 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const double_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 22 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const vector_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 28 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const row_vector_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 34 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const matrix_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 39 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const simplex_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 50 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const unit_vector_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 45 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const ordered_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 55 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const positive_ordered_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 60 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const cholesky_factor_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 65 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const cholesky_corr_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 70 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const cov_matrix_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 75 of file var_decl_dims_vis_def.hpp.
std::vector< expression > stan::lang::var_decl_dims_vis::operator() | ( | const corr_matrix_var_decl & | x | ) | const |
Return the sequence of dimension size expressions for the specified variable declaration.
x | variable declaration |
Definition at line 80 of file var_decl_dims_vis_def.hpp.