StanDimension: A dimension for a Stan vector or array

StanDimensionR Documentation

A dimension for a Stan vector or array

Description

A dimension for a Stan vector or array

A dimension for a Stan vector or array

Super class

odemodeling::StanDeclaration -> StanDimension

Methods

Public methods

Inherited methods

Method new()

Create a StanDimension object

Usage
StanDimension$new(name, lower = NULL, upper = NULL)
Arguments
name

name of the dimension variable

lower

lower bound

upper

upper bound


Method declaration()

Create a data block declaration for the dimension.

Usage
StanDimension$declaration()

Method signature()

The variable when used in function signature

Usage
StanDimension$signature()

Method get_dims()

Get all declared dimensions related to the object.

Usage
StanDimension$get_dims()
Returns

A list.


Method clone()

The objects of this class are cloneable with this method.

Usage
StanDimension$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


jtimonen/odemodeling documentation built on Sept. 15, 2024, 4:29 a.m.