Stan  2.14.0
probability, sampling & optimization
var_decl_def_vis_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_VAR_DECL_DEF_VIS_DEF_HPP
2 #define STAN_LANG_AST_FUN_VAR_DECL_DEF_VIS_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 
6 namespace stan {
7  namespace lang {
8 
10 
12  const {
13  return expression(); // should not be called
14  }
15 
17  const {
18  return x.def_;
19  }
20 
22  const {
23  return x.def_;
24  }
25 
27  const {
28  return x.def_;
29  }
30 
32  const row_vector_var_decl& x) const {
33  return x.def_;
34  }
35 
37  const {
38  return x.def_;
39  }
40 
42  const unit_vector_var_decl& x) const {
43  return x.def_;
44  }
45 
47  const simplex_var_decl& x) const {
48  return x.def_;
49  }
50 
52  const ordered_var_decl& x) const {
53  return x.def_;
54  }
55 
57  const positive_ordered_var_decl& x) const {
58  return x.def_;
59  }
60 
62  const cholesky_factor_var_decl& x) const {
63  return x.def_;
64  }
65 
67  const cholesky_corr_var_decl& x) const {
68  return x.def_;
69  }
70 
72  const cov_matrix_var_decl& x) const {
73  return x.def_;
74  }
75 
77  const corr_matrix_var_decl& x) const {
78  return x.def_;
79  }
80 
81  }
82 }
83 #endif
An integer variable declaration and optional definition.
Structure to hold the declaration of a positive ordered vector.
var_decl_def_vis()
Construct a variable declaration definition visitor.
Structure to hold a row vector variable declaration.
Probability, optimization and sampling library.
Structure to hold a covariance matrix variable declaration.
Structure to hold the declaration of a simplex.
Structure to hold a Cholesky factor for a correlation matrix variable declaration.
expression operator()(const nil &x) const
Return the definition for the specified variable declaration (in this case nil for nil input)...
Structure to hold the declaration of a unit vector.
Structure to hold a matrix variable declaration.
Structure to hold a Cholesky factor variable declaration.
Structure to hold a column vector variable declaration.
Structure to hold a correlation matrix variable declaration.
An integer variable declaration and optional definition.
Structure to hold the declaration of an ordered vector.
expression def_
Definition for variable (nil if undefined).
The nil structure used as a placeholder for undefined or empty values in several structures.
Definition: nil.hpp:11

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