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

AST structure for unary operations consisting of an operation and argument. More...

#include <unary_op.hpp>

Public Member Functions

 unary_op (char op, const expression &subject)
 Construct a unary operation of the specified operation and argument. More...
 

Public Attributes

char op
 Character-level representation of operation. More...
 
expression subject
 Argument. More...
 
expr_type type_
 Type of result. More...
 

Detailed Description

AST structure for unary operations consisting of an operation and argument.

Definition at line 14 of file unary_op.hpp.

Constructor & Destructor Documentation

§ unary_op()

stan::lang::unary_op::unary_op ( char  op,
const expression subject 
)

Construct a unary operation of the specified operation and argument.

Parameters
opoperator representation
subjectargument

Definition at line 9 of file unary_op_def.hpp.

Member Data Documentation

§ op

char stan::lang::unary_op::op

Character-level representation of operation.

Definition at line 18 of file unary_op.hpp.

§ subject

expression stan::lang::unary_op::subject

Argument.

Definition at line 23 of file unary_op.hpp.

§ type_

expr_type stan::lang::unary_op::type_

Type of result.

Definition at line 28 of file unary_op.hpp.


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

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