![]() |
Stan
2.14.0
probability, sampling & optimization
|
Structure to hold a column vector variable declaration. More...
#include <vector_var_decl.hpp>
Public Member Functions | |
vector_var_decl () | |
Construct a column vector variable declaration with default values. More... | |
vector_var_decl (const range &range, const expression &M, const std::string &name, const std::vector< expression > &dims, const expression &def) | |
Construct a column vector with the specified range constraint (which has optional lower and upper bounds), number of rows, name, array dimensions, and definition (which may be nil to indicate it is not initialized) . More... | |
![]() | |
base_var_decl () | |
Construct a default base variable declaration. More... | |
base_var_decl (const base_expr_type &base_type) | |
Construct a base variable declaration of the specified type. More... | |
base_var_decl (const std::string &name, const std::vector< expression > &dims, const base_expr_type &base_type) | |
Construct a base variable declaration with the specified name, dimensions, and base type. More... | |
base_var_decl (const std::string &name, const std::vector< expression > &dims, const base_expr_type &base_type, const expression &def) | |
Construct a base variable declaration with the specified name, dimensions, base type, and definition. More... | |
Public Attributes | |
range | range_ |
Option lower and upper bounds for values in the vector. More... | |
expression | M_ |
Number of rows in the column vector (its size). More... | |
![]() | |
std::string | name_ |
Name of the variable. More... | |
std::vector< expression > | dims_ |
Dimension sizes for variable. More... | |
base_expr_type | base_type_ |
Base type for variable. More... | |
expression | def_ |
Definition for variable (nil if undefined). More... | |
Structure to hold a column vector variable declaration.
Definition at line 16 of file vector_var_decl.hpp.
stan::lang::vector_var_decl::vector_var_decl | ( | ) |
Construct a column vector variable declaration with default values.
Definition at line 11 of file vector_var_decl_def.hpp.
stan::lang::vector_var_decl::vector_var_decl | ( | const range & | range, |
const expression & | M, | ||
const std::string & | name, | ||
const std::vector< expression > & | dims, | ||
const expression & | def | ||
) |
Construct a column vector with the specified range constraint (which has optional lower and upper bounds), number of rows, name, array dimensions, and definition (which may be nil to indicate it is not initialized) .
range | optional upper and lower bound on values |
M | number of rows (size) |
name | variable name |
dims | number of array dimensions |
def | definition |
Definition at line 13 of file vector_var_decl_def.hpp.
expression stan::lang::vector_var_decl::M_ |
Number of rows in the column vector (its size).
Definition at line 25 of file vector_var_decl.hpp.
range stan::lang::vector_var_decl::range_ |
Option lower and upper bounds for values in the vector.
Definition at line 20 of file vector_var_decl.hpp.