Returns the dimensions that are actually present in a parameter's data. For folded parameters, returns the reduced dimensions. For unfolded parameters, returns the original dimensions.
Details
During folding, parameters store active_dims which reflects the reduced
dimensionality. This function provides a consistent way to retrieve the appropriate
dimensions for code generation and validation.
Examples
if (FALSE) { # \dontrun{
# Get active dimensions (works for folded or unfolded)
dims <- get_active_dims(param)
# Check if parameter is folded
folded_dims <- get_active_dims(param, folded = TRUE)
is_folded <- !is.null(folded_dims)
} # }
