Stan  2.14.0
probability, sampling & optimization
var_decl_has_def_vis_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_VAR_DECL_HAS_DEF_VIS_DEF_HPP
2 #define STAN_LANG_AST_FUN_VAR_DECL_HAS_DEF_VIS_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 
6 namespace stan {
7  namespace lang {
8 
10 
12  const {
13  return false; // should not be called
14  }
15 
17  const {
18  return !is_nil(x.def_);
19  }
20 
22  const {
23  return !is_nil(x.def_);
24  }
25 
27  const {
28  return !is_nil(x.def_);
29  }
30 
32  const row_vector_var_decl& x) const {
33  return !is_nil(x.def_);
34  }
35 
37  const {
38  return !is_nil(x.def_);
39  }
40 
42  const unit_vector_var_decl& x) const {
43  return !is_nil(x.def_);
44  }
45 
47  const simplex_var_decl& x) const {
48  return !is_nil(x.def_);
49  }
50 
52  const ordered_var_decl& x) const {
53  return !is_nil(x.def_);
54  }
55 
57  const positive_ordered_var_decl& x) const {
58  return !is_nil(x.def_);
59  }
60 
62  const cholesky_factor_var_decl& x) const {
63  return !is_nil(x.def_);
64  }
65 
67  const cholesky_corr_var_decl& x) const {
68  return !is_nil(x.def_);
69  }
70 
72  const cov_matrix_var_decl& x) const {
73  return !is_nil(x.def_);
74  }
75 
77  const corr_matrix_var_decl& x) const {
78  return !is_nil(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.
Structure to hold a row vector variable declaration.
Probability, optimization and sampling library.
var_decl_has_def_vis()
Construct the visitor.
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.
bool is_nil(const expression &e)
Return true if the specified expression is nil.
Definition: is_nil_def.hpp:10
Structure to hold the declaration of a unit vector.
bool operator()(const nil &x) const
Return true if the specified variable declaration includes a variable definition (always false for th...
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.