Stan  2.14.0
probability, sampling & optimization
var_decl_base_type_vis_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_VAR_DECL_BASE_TYPE_VIS_DEF_HPP
2 #define STAN_LANG_AST_FUN_VAR_DECL_BASE_TYPE_VIS_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 
6 namespace stan {
7  namespace lang {
8 
10 
12  const {
13  return base_var_decl();
14  }
15 
17  const {
18  return x.base_type_;
19  }
20 
22  const {
23  return x.base_type_;
24  }
25 
27  const {
28  return x.base_type_;
29  }
30 
32  const row_vector_var_decl& x) const {
33  return x.base_type_;
34  }
35 
37  const {
38  return x.base_type_;
39  }
40 
42  const unit_vector_var_decl& x) const {
43  return x.base_type_;
44  }
45 
47  const simplex_var_decl& x) const {
48  return x.base_type_;
49  }
50 
52  const ordered_var_decl& x) const {
53  return x.base_type_;
54  }
55 
57  const positive_ordered_var_decl& x) const {
58  return x.base_type_;
59  }
60 
62  const cholesky_factor_var_decl& x) const {
63  return x.base_type_;
64  }
65 
67  const cholesky_corr_var_decl& x) const {
68  return x.base_type_;
69  }
70 
72  const cov_matrix_var_decl& x) const {
73  return x.base_type_;
74  }
75 
77  const corr_matrix_var_decl& x) const {
78  return x.base_type_;
79  }
80 
81  }
82 }
83 #endif
An integer variable declaration and optional definition.
Structure to hold the declaration of a positive ordered vector.
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.
Structure to hold the declaration of a unit vector.
var_decl_base_type_vis()
Construct a variable declaration visitor.
Structure to hold a matrix variable declaration.
base_expr_type base_type_
Base type for variable.
Structure to hold a Cholesky factor variable declaration.
Structure to hold a column vector variable declaration.
Structure to hold a correlation matrix variable declaration.
AST base class for variable declarations, which share most of their structure.
base_var_decl operator()(const nil &x) const
Return the nil variable declaration for the specified nil variable declaration.
An integer variable declaration and optional definition.
Structure to hold the declaration of an ordered vector.
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.