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

#include <ast.hpp>

Public Types

typedef boost::variant< boost::recursive_wrapper< nil >, boost::recursive_wrapper< int_literal >, boost::recursive_wrapper< double_literal >, boost::recursive_wrapper< array_literal >, boost::recursive_wrapper< variable >, boost::recursive_wrapper< integrate_ode >, boost::recursive_wrapper< integrate_ode_control >, boost::recursive_wrapper< fun >, boost::recursive_wrapper< index_op >, boost::recursive_wrapper< index_op_sliced >, boost::recursive_wrapper< conditional_op >, boost::recursive_wrapper< binary_op >, boost::recursive_wrapper< unary_op > > expression_t
 

Public Member Functions

 expression ()
 
 expression (const expression &e)
 
 expression (const nil &expr)
 
 expression (const int_literal &expr)
 
 expression (const double_literal &expr)
 
 expression (const array_literal &expr)
 
 expression (const variable &expr)
 
 expression (const fun &expr)
 
 expression (const integrate_ode &expr)
 
 expression (const integrate_ode_control &expr)
 
 expression (const index_op &expr)
 
 expression (const index_op_sliced &expr)
 
 expression (const conditional_op &expr)
 
 expression (const binary_op &expr)
 
 expression (const unary_op &expr)
 
 expression (const expression_t &expr_)
 
expr_type expression_type () const
 
int total_dims () const
 
expressionoperator+= (const expression &rhs)
 
expressionoperator-= (const expression &rhs)
 
expressionoperator*= (const expression &rhs)
 
expressionoperator/= (const expression &rhs)
 

Public Attributes

expression_t expr_
 

Detailed Description

Definition at line 250 of file ast.hpp.

Member Typedef Documentation

§ expression_t

typedef boost::variant<boost::recursive_wrapper<nil>, boost::recursive_wrapper<int_literal>, boost::recursive_wrapper<double_literal>, boost::recursive_wrapper<array_literal>, boost::recursive_wrapper<variable>, boost::recursive_wrapper<integrate_ode>, boost::recursive_wrapper<integrate_ode_control>, boost::recursive_wrapper<fun>, boost::recursive_wrapper<index_op>, boost::recursive_wrapper<index_op_sliced>, boost::recursive_wrapper<conditional_op>, boost::recursive_wrapper<binary_op>, boost::recursive_wrapper<unary_op> > stan::lang::expression::expression_t

Definition at line 264 of file ast.hpp.

Constructor & Destructor Documentation

§ expression() [1/16]

stan::lang::expression::expression ( )

Definition at line 754 of file ast_def.cpp.

§ expression() [2/16]

stan::lang::expression::expression ( const expression e)

Definition at line 757 of file ast_def.cpp.

§ expression() [3/16]

stan::lang::expression::expression ( const nil expr)

Definition at line 766 of file ast_def.cpp.

§ expression() [4/16]

stan::lang::expression::expression ( const int_literal expr)

Definition at line 767 of file ast_def.cpp.

§ expression() [5/16]

stan::lang::expression::expression ( const double_literal expr)

Definition at line 768 of file ast_def.cpp.

§ expression() [6/16]

stan::lang::expression::expression ( const array_literal expr)

Definition at line 769 of file ast_def.cpp.

§ expression() [7/16]

stan::lang::expression::expression ( const variable expr)

Definition at line 770 of file ast_def.cpp.

§ expression() [8/16]

stan::lang::expression::expression ( const fun expr)

Definition at line 773 of file ast_def.cpp.

§ expression() [9/16]

stan::lang::expression::expression ( const integrate_ode expr)

Definition at line 771 of file ast_def.cpp.

§ expression() [10/16]

stan::lang::expression::expression ( const integrate_ode_control expr)

Definition at line 772 of file ast_def.cpp.

§ expression() [11/16]

stan::lang::expression::expression ( const index_op expr)

Definition at line 774 of file ast_def.cpp.

§ expression() [12/16]

stan::lang::expression::expression ( const index_op_sliced expr)

Definition at line 775 of file ast_def.cpp.

§ expression() [13/16]

stan::lang::expression::expression ( const conditional_op expr)

Definition at line 776 of file ast_def.cpp.

§ expression() [14/16]

stan::lang::expression::expression ( const binary_op expr)

Definition at line 777 of file ast_def.cpp.

§ expression() [15/16]

stan::lang::expression::expression ( const unary_op expr)

Definition at line 778 of file ast_def.cpp.

§ expression() [16/16]

stan::lang::expression::expression ( const expression_t expr_)

Definition at line 765 of file ast_def.cpp.

Member Function Documentation

§ expression_type()

expr_type stan::lang::expression::expression_type ( ) const

Definition at line 760 of file ast_def.cpp.

§ operator*=()

expression & stan::lang::expression::operator*= ( const expression rhs)

Definition at line 2144 of file ast_def.cpp.

§ operator+=()

expression & stan::lang::expression::operator+= ( const expression rhs)

Definition at line 2134 of file ast_def.cpp.

§ operator-=()

expression & stan::lang::expression::operator-= ( const expression rhs)

Definition at line 2139 of file ast_def.cpp.

§ operator/=()

expression & stan::lang::expression::operator/= ( const expression rhs)

Definition at line 2149 of file ast_def.cpp.

§ total_dims()

int stan::lang::expression::total_dims ( ) const

Definition at line 780 of file ast_def.cpp.

Member Data Documentation

§ expr_

expression_t stan::lang::expression::expr_

Definition at line 293 of file ast.hpp.


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

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