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

AST base class for variable declarations, which share most of their structure. More...

#include <base_var_decl.hpp>

Inheritance diagram for stan::lang::base_var_decl:
stan::lang::cholesky_corr_var_decl stan::lang::cholesky_factor_var_decl stan::lang::corr_matrix_var_decl stan::lang::cov_matrix_var_decl stan::lang::double_var_decl stan::lang::int_var_decl stan::lang::matrix_var_decl stan::lang::ordered_var_decl stan::lang::positive_ordered_var_decl stan::lang::row_vector_var_decl stan::lang::simplex_var_decl stan::lang::unit_vector_var_decl stan::lang::vector_var_decl

Public Member Functions

 base_var_decl ()
 Construct a default base variable declaration. More...
 
 base_var_decl (const base_expr_type &base_type)
 Construct a base variable declaration of the specified type. More...
 
 base_var_decl (const std::string &name, const std::vector< expression > &dims, const base_expr_type &base_type)
 Construct a base variable declaration with the specified name, dimensions, and base type. More...
 
 base_var_decl (const std::string &name, const std::vector< expression > &dims, const base_expr_type &base_type, const expression &def)
 Construct a base variable declaration with the specified name, dimensions, base type, and definition. More...
 

Public Attributes

std::string name_
 Name of the variable. More...
 
std::vector< expressiondims_
 Dimension sizes for variable. More...
 
base_expr_type base_type_
 Base type for variable. More...
 
expression def_
 Definition for variable (nil if undefined). More...
 

Detailed Description

AST base class for variable declarations, which share most of their structure.

Definition at line 16 of file base_var_decl.hpp.

Constructor & Destructor Documentation

§ base_var_decl() [1/4]

stan::lang::base_var_decl::base_var_decl ( )

Construct a default base variable declaration.

Definition at line 11 of file base_var_decl_def.hpp.

§ base_var_decl() [2/4]

stan::lang::base_var_decl::base_var_decl ( const base_expr_type base_type)

Construct a base variable declaration of the specified type.

Parameters
base_typebase type for variable

Definition at line 13 of file base_var_decl_def.hpp.

§ base_var_decl() [3/4]

stan::lang::base_var_decl::base_var_decl ( const std::string &  name,
const std::vector< expression > &  dims,
const base_expr_type base_type 
)

Construct a base variable declaration with the specified name, dimensions, and base type.

The definition is set to nil.

Parameters
namename of variable
dimsdimensions of variables
base_typebase expression type of variable

Definition at line 16 of file base_var_decl_def.hpp.

§ base_var_decl() [4/4]

stan::lang::base_var_decl::base_var_decl ( const std::string &  name,
const std::vector< expression > &  dims,
const base_expr_type base_type,
const expression def 
)

Construct a base variable declaration with the specified name, dimensions, base type, and definition.

Parameters
namename of variable
dimsdimensions of variables
base_typebase expression type of variable
defdefinition of expression

Definition at line 21 of file base_var_decl_def.hpp.

Member Data Documentation

§ base_type_

base_expr_type stan::lang::base_var_decl::base_type_

Base type for variable.

Definition at line 30 of file base_var_decl.hpp.

§ def_

expression stan::lang::base_var_decl::def_

Definition for variable (nil if undefined).

Definition at line 35 of file base_var_decl.hpp.

§ dims_

std::vector<expression> stan::lang::base_var_decl::dims_

Dimension sizes for variable.

Definition at line 25 of file base_var_decl.hpp.

§ name_

std::string stan::lang::base_var_decl::name_

Name of the variable.

Definition at line 20 of file base_var_decl.hpp.


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

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