Stan  2.14.0
probability, sampling & optimization
unary_op_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_UNARY_OP_DEF_HPP
2 #define STAN_LANG_AST_NODE_UNARY_OP_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 
6 namespace stan {
7  namespace lang {
8 
9  unary_op::unary_op(char op, const expression& subject)
10  : op(op), subject(subject),
11  type_(promote_primitive(subject.expression_type())) {
12  }
13 
14  }
15 }
16 #endif
17 
18 
Probability, optimization and sampling library.
expr_type promote_primitive(const expr_type &et)
unary_op(char op, const expression &subject)
Construct a unary operation of the specified operation and argument.
Definition: unary_op_def.hpp:9

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