Get the actual dimension.
This corresponds to the N template parameter in general, or to the current dimension if variable.
N