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

Structure to hold an array expression. More...

#include <array_expr.hpp>

Public Member Functions

 array_expr ()
 Construct a default array expression. More...
 
 array_expr (const std::vector< expression > &args)
 Construct an array expression from the specified sequence of expressions. More...
 
array_exproperator= (const array_expr &al)
 Assign specified array expression to this array expression. More...
 

Public Attributes

std::vector< expressionargs_
 Sequence of expressions for array values. More...
 
expr_type type_
 Type of array. More...
 
bool has_var_
 True if there is a variable within any of the expressions that is a parameter, transformed parameter, or non-integer local variable. More...
 
var_origin var_origin_
 Origin of this array expression. More...
 

Detailed Description

Structure to hold an array expression.

Definition at line 17 of file array_expr.hpp.

Constructor & Destructor Documentation

§ array_expr() [1/2]

stan::lang::array_expr::array_expr ( )

Construct a default array expression.

Definition at line 10 of file array_expr_def.hpp.

§ array_expr() [2/2]

stan::lang::array_expr::array_expr ( const std::vector< expression > &  args)

Construct an array expression from the specified sequence of expressions.

Parameters
argssequence of arguments

Definition at line 12 of file array_expr_def.hpp.

Member Function Documentation

§ operator=()

array_expr & stan::lang::array_expr::operator= ( const array_expr al)

Assign specified array expression to this array expression.

Parameters
alnew array expression value
Returns
reference to value

Definition at line 15 of file array_expr_def.hpp.

Member Data Documentation

§ args_

std::vector<expression> stan::lang::array_expr::args_

Sequence of expressions for array values.

Definition at line 21 of file array_expr.hpp.

§ has_var_

bool stan::lang::array_expr::has_var_

True if there is a variable within any of the expressions that is a parameter, transformed parameter, or non-integer local variable.

Definition at line 33 of file array_expr.hpp.

§ type_

expr_type stan::lang::array_expr::type_

Type of array.

Definition at line 26 of file array_expr.hpp.

§ var_origin_

var_origin stan::lang::array_expr::var_origin_

Origin of this array expression.

Definition at line 40 of file array_expr.hpp.


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

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