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

Structure to hold the declaration of an ordered vector. More...

#include <ordered_var_decl.hpp>

Inheritance diagram for stan::lang::ordered_var_decl:
stan::lang::base_var_decl

Public Member Functions

 ordered_var_decl ()
 Construct a default ordered vector declaration. More...
 
 ordered_var_decl (const expression &K, const std::string &name, const std::vector< expression > &dims, const expression &def)
 Construct an ordered vector declaration with the specified size, name, and number of array dimensions. More...
 
- Public Member Functions inherited from stan::lang::base_var_decl
 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

expression K_
 Ordered vector size. More...
 
- Public Attributes inherited from stan::lang::base_var_decl
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

Structure to hold the declaration of an ordered vector.

Definition at line 15 of file ordered_var_decl.hpp.

Constructor & Destructor Documentation

§ ordered_var_decl() [1/2]

stan::lang::ordered_var_decl::ordered_var_decl ( )

Construct a default ordered vector declaration.

Definition at line 11 of file ordered_var_decl_def.hpp.

§ ordered_var_decl() [2/2]

stan::lang::ordered_var_decl::ordered_var_decl ( const expression K,
const std::string &  name,
const std::vector< expression > &  dims,
const expression def 
)

Construct an ordered vector declaration with the specified size, name, and number of array dimensions.

Parameters
Ksize of ordered vector
namevariable name
dimsarray dimension sizes
defdefinition

Definition at line 13 of file ordered_var_decl_def.hpp.

Member Data Documentation

§ K_

expression stan::lang::ordered_var_decl::K_

Ordered vector size.

Definition at line 19 of file ordered_var_decl.hpp.


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

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