![]() |
Stan
2.14.0
probability, sampling & optimization
|
Structure to hold the declaration of a unit vector. More...
#include <unit_vector_var_decl.hpp>
Public Member Functions | |
unit_vector_var_decl () | |
Construct a default unit vector declaration. More... | |
unit_vector_var_decl (const expression &K, const std::string &name, const std::vector< expression > &dims, const expression &def) | |
Construct a unit vector declaration with the specified size, name, and number of array dimensions. 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 | |
expression | K_ |
Unit vector 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 the declaration of a unit vector.
Definition at line 15 of file unit_vector_var_decl.hpp.
stan::lang::unit_vector_var_decl::unit_vector_var_decl | ( | ) |
Construct a default unit vector declaration.
Definition at line 11 of file unit_vector_var_decl_def.hpp.
stan::lang::unit_vector_var_decl::unit_vector_var_decl | ( | const expression & | K, |
const std::string & | name, | ||
const std::vector< expression > & | dims, | ||
const expression & | def | ||
) |
Construct a unit vector declaration with the specified size, name, and number of array dimensions.
K | size of unit vector |
name | variable name |
dims | array dimension sizes |
def | definition |
Definition at line 13 of file unit_vector_var_decl_def.hpp.
expression stan::lang::unit_vector_var_decl::K_ |
Unit vector size.
Definition at line 19 of file unit_vector_var_decl.hpp.