Stan  2.14.0
probability, sampling & optimization
is_data_origin_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_IS_DATA_ORIGIN_DEF_HPP
2 #define STAN_LANG_AST_FUN_IS_DATA_ORIGIN_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 
6 namespace stan {
7  namespace lang {
8 
9  bool is_data_origin(const var_origin& vo) {
10  return vo == data_origin || vo == transformed_data_origin;
11  }
12 
13  }
14 }
15 #endif
Probability, optimization and sampling library.
int var_origin
The type of a variable indicating where a variable was declared.
Definition: var_origin.hpp:12
const int data_origin
The origin of the variable is the data block.
Definition: var_origin.hpp:22
bool is_data_origin(const var_origin &vo)
Return true if the specified variable origin is for variables declared as data or transformed data...
const int transformed_data_origin
The origin of the variable is the transformed data block.
Definition: var_origin.hpp:27

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