Stan  2.14.0
probability, sampling & optimization
Public Member Functions | Public Attributes | List of all members
stan::lang::binary_op Struct Reference

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...
 

Detailed Description

Node for storing binary operations consisting of an operation and left and right arguments.

Definition at line 15 of file binary_op.hpp.

Constructor & Destructor Documentation

§ binary_op() [1/2]

stan::lang::binary_op::binary_op ( )

Construct a default binary operation.

Definition at line 10 of file binary_op_def.hpp.

§ binary_op() [2/2]

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.

Parameters
leftfirst argument
opoperator name
rightsecond argument

Definition at line 12 of file binary_op_def.hpp.

Member Data Documentation

§ left

expression stan::lang::binary_op::left

First argument.

Definition at line 24 of file binary_op.hpp.

§ op

std::string stan::lang::binary_op::op

String representation of the operation.

Definition at line 19 of file binary_op.hpp.

§ right

expression stan::lang::binary_op::right

Second argument.

Definition at line 29 of file binary_op.hpp.

§ type_

expr_type stan::lang::binary_op::type_

Type of result.

Definition at line 34 of file binary_op.hpp.


The documentation for this struct was generated from the following files:

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