Stan  2.14.0
probability, sampling & optimization
double_literal_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_DOUBLE_LITERAL_DEF_HPP
2 #define STAN_LANG_AST_NODE_DOUBLE_LITERAL_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 
6 namespace stan {
7  namespace lang {
8 
10 
12  : val_(val), type_(DOUBLE_T, 0U) { }
13 
15  val_ = dl.val_;
16  type_ = dl.type_;
17  return *this;
18  }
19 
20  }
21 }
22 #endif
Node for holding a double literal.
Probability, optimization and sampling library.
const int DOUBLE_T
Real scalar type.
double_literal()
Default constructor for double literal.
double val_
Value of literal.
expr_type type_
Expression type.
double_literal & operator=(const double_literal &dl)
Assign a double literal to this literal and return it.

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