Stan  2.14.0
probability, sampling & optimization
write_base_expr_type_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_WRITE_BASE_EXPR_TYPE_DEF_HPP
2 #define STAN_LANG_AST_FUN_WRITE_BASE_EXPR_TYPE_DEF_HPP
3 
5 
6 namespace stan {
7  namespace lang {
8 
9  std::ostream& write_base_expr_type(std::ostream& o, base_expr_type type) {
10  switch (type) {
11  case INT_T :
12  o << "int";
13  break;
14  case DOUBLE_T :
15  o << "real";
16  break;
17  case VECTOR_T :
18  o << "vector";
19  break;
20  case ROW_VECTOR_T :
21  o << "row vector";
22  break;
23  case MATRIX_T :
24  o << "matrix";
25  break;
26  case ILL_FORMED_T :
27  o << "ill formed";
28  break;
29  case VOID_T :
30  o << "void";
31  break;
32  default:
33  o << "UNKNOWN";
34  }
35  return o;
36  }
37  }
38 }
39 
40 #endif
const int ROW_VECTOR_T
Row vector type; scalar type is real.
Probability, optimization and sampling library.
const int DOUBLE_T
Real scalar type.
int base_expr_type
The type of a base expression.
const int VOID_T
Void type.
const int INT_T
Integer type.
const int VECTOR_T
Column vector type; scalar type is real.
std::ostream & write_base_expr_type(std::ostream &o, base_expr_type type)
Write a user-readable version of the specified base expression type to the specified output stream...
const int ILL_FORMED_T
Type denoting an ill-formed expression.
const int MATRIX_T
Matrix type; scalar type is real.

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