StanVector: A Stan vector

StanVectorR Documentation

A Stan vector

Description

A Stan vector

A Stan vector

Super class

odemodeling::StanDeclaration -> StanVector

Public fields

length

length of the vector

Methods

Public methods

Inherited methods

Method new()

Create a StanVector object.

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

name of the vector

length

length of the vector, must be a StanDimension object

lower

lower bound

upper

upper bound


Method declaration()

Create a declaration for the vector

Usage
StanVector$declaration()
Returns

a string


Method signature()

The variable when used in function signature

Usage
StanVector$signature()

Method can_be_made_parameter()

Can the object be made into a parameter?

Usage
StanVector$can_be_made_parameter()

Method get_dims()

Get all declared dimensions related to the object.

Usage
StanVector$get_dims()
Returns

A list.


Method clone()

The objects of this class are cloneable with this method.

Usage
StanVector$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


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