Skip to contents

Returns a named list of array dimensions used by downstream builders (inits/monitors/code generation). Dimensions are derived solely from spec$meta and spec$plan. This function does not inspect data.

Usage

build_dimensions_from_spec(spec)

Arguments

spec

A compiled model specification produced by compile_model_spec().

Value

Named list of dimensions (integer vectors). Scalars are omitted.

Details

The model size is controlled by a single parameter: components. For SB this is the truncation level of the stick-breaking mixture. For CRP this is the maximum number of clusters represented in the finite model.