Stan  2.14.0
probability, sampling & optimization
int_var_decl_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_INT_VAR_DECL_DEF_HPP
2 #define STAN_LANG_AST_NODE_INT_VAR_DECL_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 #include <string>
6 #include <vector>
7 
8 namespace stan {
9  namespace lang {
10 
12 
13  int_var_decl::int_var_decl(const range& range, const std::string& name,
14  const std::vector<expression>& dims,
15  const expression& def)
16  : base_var_decl(name, dims, INT_T, def), range_(range) { }
17 
18  }
19 }
20 #endif
range range_
Range constraint on values with optional lower and upper bounds.
Probability, optimization and sampling library.
int_var_decl()
Construct an integer variable declaration with default values.
AST structure for a range object with a low and high value.
Definition: range.hpp:14
const int INT_T
Integer type.
AST base class for variable declarations, which share most of their structure.

     [ Stan Home Page ] © 2011–2016, Stan Development Team.