Stan  2.14.0
probability, sampling & optimization
is_fun_origin_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_IS_FUN_ORIGIN_DEF_HPP
2 #define STAN_LANG_AST_FUN_IS_FUN_ORIGIN_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 
6 namespace stan {
7  namespace lang {
8 
9  bool is_fun_origin(const var_origin& vo) {
10  return vo == function_argument_origin
16  }
17 
18  }
19 }
20 #endif
const int function_argument_origin
The variable arose as a function argument to a non-void function that does not end in _lp or _rng...
Definition: var_origin.hpp:53
bool is_fun_origin(const var_origin &vo)
Return true if the specified variable origin is for variables declared as function arguments...
const int function_argument_origin_rng
The variable arose as an argument to a non-void function with the _rng suffix.
Definition: var_origin.hpp:65
Probability, optimization and sampling library.
const int function_argument_origin_lp
The variable arose as an argument to a non-void function with the _lp suffix.
Definition: var_origin.hpp:59
const int void_function_argument_origin_rng
The variable arose as an argument to a function returning void with an _rng suffix.
Definition: var_origin.hpp:83
int var_origin
The type of a variable indicating where a variable was declared.
Definition: var_origin.hpp:12
const int void_function_argument_origin
The variable arose as an argument to a function returning void that does not have the _lp or _rng suf...
Definition: var_origin.hpp:71
const int void_function_argument_origin_lp
The variable arose as an argument to a function returning void with _lp suffix.
Definition: var_origin.hpp:77

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