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

AST structure for holding an expression with a sequence of indexes. More...

#include <index_op_sliced.hpp>

Public Member Functions

 index_op_sliced ()
 Construct a default indexed expression (all nil). More...
 
 index_op_sliced (const expression &expr, const std::vector< idx > &idxs)
 Construct an indexed expression from the specified expression and indexes. More...
 
void infer_type ()
 Infer the type of the result. More...
 

Public Attributes

expression expr_
 Expression being indexed. More...
 
std::vector< idxidxs_
 Sequence of indexes. More...
 
expr_type type_
 Type of result. More...
 

Detailed Description

AST structure for holding an expression with a sequence of indexes.

Definition at line 16 of file index_op_sliced.hpp.

Constructor & Destructor Documentation

§ index_op_sliced() [1/2]

stan::lang::index_op_sliced::index_op_sliced ( )

Construct a default indexed expression (all nil).

Definition at line 10 of file index_op_sliced_def.hpp.

§ index_op_sliced() [2/2]

stan::lang::index_op_sliced::index_op_sliced ( const expression expr,
const std::vector< idx > &  idxs 
)

Construct an indexed expression from the specified expression and indexes.

Parameters
exprexpression being indexed
idxsindexes

Definition at line 12 of file index_op_sliced_def.hpp.

Member Function Documentation

§ infer_type()

void stan::lang::index_op_sliced::infer_type ( )

Infer the type of the result.

Modifies the underlying expression type and not well formed until this is run.

Definition at line 16 of file index_op_sliced_def.hpp.

Member Data Documentation

§ expr_

expression stan::lang::index_op_sliced::expr_

Expression being indexed.

Definition at line 20 of file index_op_sliced.hpp.

§ idxs_

std::vector<idx> stan::lang::index_op_sliced::idxs_

Sequence of indexes.

Definition at line 25 of file index_op_sliced.hpp.

§ type_

expr_type stan::lang::index_op_sliced::type_

Type of result.

Definition at line 30 of file index_op_sliced.hpp.


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

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