Stan  2.14.0
probability, sampling & optimization
has_non_param_var_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_HAS_NON_PARAM_VAR_DEF_HPP
2 #define STAN_LANG_AST_FUN_HAS_NON_PARAM_VAR_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 #include <boost/variant/apply_visitor.hpp>
6 
7 namespace stan {
8  namespace lang {
9 
11  const variable_map& var_map) {
12  has_non_param_var_vis vis(var_map);
13  return boost::apply_visitor(vis, e.expr_);
14  }
15 
16  }
17 }
18 #endif
Probability, optimization and sampling library.
A map from function names to their base declarations and their origin.
Visitor to determine if an expression contains a variable that is not declared as a parameter...
bool has_non_param_var(const expression &e, const variable_map &var_map)
Returns true if the specified expression contains a variable that requires a Jacobian warning...

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