stan_vector_array: Create a StanVectorArray object.

View source: R/main-declarations.R

stan_vector_arrayR Documentation

Create a StanVectorArray object.

Description

Create a StanVectorArray object.

Usage

stan_vector_array(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

See Also

Other Stan variable declaration functions: stan_array(), stan_dim(), stan_matrix(), stan_param(), stan_transform(), stan_var(), stan_vector()

Examples

N <- stan_dim("N")
D <- stan_dim("D")
vec_arr <- stan_vector_array("y", dims = list(N), length = D)
print(vec_arr)

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