![]() |
Stan
2.14.0
probability, sampling & optimization
|
Node for storing binary operations consisting of an operation and left and right arguments. More...
#include <binary_op.hpp>
Public Member Functions | |
| binary_op () | |
| Construct a default binary operation. More... | |
| binary_op (const expression &left, const std::string &op, const expression &right) | |
| Construct a binary operation of the specified operator and arguments. More... | |
Public Attributes | |
| std::string | op |
| String representation of the operation. More... | |
| expression | left |
| First argument. More... | |
| expression | right |
| Second argument. More... | |
| expr_type | type_ |
| Type of result. More... | |
Node for storing binary operations consisting of an operation and left and right arguments.
Definition at line 15 of file binary_op.hpp.
| stan::lang::binary_op::binary_op | ( | ) |
Construct a default binary operation.
Definition at line 10 of file binary_op_def.hpp.
| stan::lang::binary_op::binary_op | ( | const expression & | left, |
| const std::string & | op, | ||
| const expression & | right | ||
| ) |
Construct a binary operation of the specified operator and arguments.
| left | first argument |
| op | operator name |
| right | second argument |
Definition at line 12 of file binary_op_def.hpp.
| expression stan::lang::binary_op::left |
First argument.
Definition at line 24 of file binary_op.hpp.
| std::string stan::lang::binary_op::op |
String representation of the operation.
Definition at line 19 of file binary_op.hpp.
| expression stan::lang::binary_op::right |
Second argument.
Definition at line 29 of file binary_op.hpp.
| expr_type stan::lang::binary_op::type_ |
Type of result.
Definition at line 34 of file binary_op.hpp.