dim_from_labels: The dimensions of an array, given its labels
Description
Internal helper for sizeIntegral(). A scalar has no labels and no
dimensions, a vector has one.
Usage
dim_from_labels(x, labels)
Value
An integer vector of dimensions, of the same length as labels.
Arguments
- x
An array, vector or scalar.
- labels
Its dimension labels.