StanVectorArray: A Stan array of vectors

StanVectorArrayR Documentation

A Stan array of vectors

Description

A Stan array of vectors

A Stan array of vectors

Super class

odemodeling::StanDeclaration -> StanVectorArray

Public fields

dims

list of array dimensions

length

length of the vector

Methods

Public methods

Inherited methods

Method new()

Create a StanVectorArray object.

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

name of the vector array

dims

list of array dimensions, must be a list of StanDimension objects

length

length of the vector, must be a StanDimension object

lower

lower bound

upper

upper bound


Method declaration()

Create a declaration for the array of vectors

Usage
StanVectorArray$declaration()
Returns

a string


Method signature()

The variable when used in function signature

Usage
StanVectorArray$signature()

Method can_be_made_parameter()

Can the object be made into a parameter?

Usage
StanVectorArray$can_be_made_parameter()

Method get_dims()

Get all declared dimensions related to the object.

Usage
StanVectorArray$get_dims()
Returns

A list.


Method clone()

The objects of this class are cloneable with this method.

Usage
StanVectorArray$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


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