Stan  2.14.0
probability, sampling & optimization
binary_op.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_BINARY_OP_HPP
2 #define STAN_LANG_AST_NODE_BINARY_OP_HPP
3 
6 #include <string>
7 
8 namespace stan {
9  namespace lang {
10 
15  struct binary_op {
19  std::string op;
20 
25 
30 
35 
39  binary_op();
40 
49  binary_op(const expression& left, const std::string& op,
50  const expression& right);
51  };
52 
53  }
54 }
55 #endif
Probability, optimization and sampling library.
binary_op()
Construct a default binary operation.
Structure of the type of an expression, which consists of a base type and a number of dimensions...
Definition: expr_type.hpp:14
expr_type type_
Type of result.
Definition: binary_op.hpp:34
expression left
First argument.
Definition: binary_op.hpp:24
expression right
Second argument.
Definition: binary_op.hpp:29
std::string op
String representation of the operation.
Definition: binary_op.hpp:19
Node for storing binary operations consisting of an operation and left and right arguments.
Definition: binary_op.hpp:15

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