% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build-run.R
\name{build_dimensions_from_spec}
\alias{build_dimensions_from_spec}
\title{Build dimension declarations from a compiled model spec}
\usage{
build_dimensions_from_spec(spec)
}
\arguments{
\item{spec}{A compiled model specification produced by \code{compile_model_spec()}.}
}
\value{
Named list of dimensions (integer vectors). Scalars are omitted.
}
\description{
Returns a named list of array dimensions used by downstream builders
(inits/monitors/code generation). Dimensions are derived solely from
\code{spec$meta} and \code{spec$plan}. This function does not inspect data.
}
\details{
The model size is controlled by a single parameter: \code{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.
}
\keyword{internal}
