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

Structure for holding a variable with its dimension declarations. More...

#include <variable_dims.hpp>

Public Member Functions

 variable_dims ()
 Construct a default object. More...
 
 variable_dims (const std::string &name, const std::vector< expression > &dims)
 Construct with the specified name and dimensions. More...
 

Public Attributes

std::string name_
 Name of the variable. More...
 
std::vector< expressiondims_
 Sequence of expressions for dimensions. More...
 

Detailed Description

Structure for holding a variable with its dimension declarations.

Definition at line 16 of file variable_dims.hpp.

Constructor & Destructor Documentation

§ variable_dims() [1/2]

stan::lang::variable_dims::variable_dims ( )

Construct a default object.

Definition at line 11 of file variable_dims_def.hpp.

§ variable_dims() [2/2]

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

Construct with the specified name and dimensions.

Parameters
namename of variable
dimsdimensions of variable

Definition at line 13 of file variable_dims_def.hpp.

Member Data Documentation

§ dims_

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

Sequence of expressions for dimensions.

Definition at line 25 of file variable_dims.hpp.

§ name_

std::string stan::lang::variable_dims::name_

Name of the variable.

Definition at line 20 of file variable_dims.hpp.


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

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