Stan  2.14.0
probability, sampling & optimization
unary_op.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_UNARY_OP_HPP
2 #define STAN_LANG_AST_NODE_UNARY_OP_HPP
3 
6 
7 namespace stan {
8  namespace lang {
9 
14  struct unary_op {
18  char op;
19 
24 
29 
37  unary_op(char op, const expression& subject);
38  };
39 
40  }
41 }
42 #endif
Probability, optimization and sampling library.
expr_type type_
Type of result.
Definition: unary_op.hpp:28
Structure of the type of an expression, which consists of a base type and a number of dimensions...
Definition: expr_type.hpp:14
char op
Character-level representation of operation.
Definition: unary_op.hpp:18
unary_op(char op, const expression &subject)
Construct a unary operation of the specified operation and argument.
Definition: unary_op_def.hpp:9
expression subject
Argument.
Definition: unary_op.hpp:23
AST structure for unary operations consisting of an operation and argument.
Definition: unary_op.hpp:14

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