Check the dimensions of a power array
Arguments
- x
A power array
- required_dim
The number of dimensions required. If NULL just returns the number of dimensions.
- condition
If required dimensions are not correct should a
warningorerrorbe produced. Ignored if required dimensions is NULL.- sliced
For the condition text should the user be informed the array is sliced. Ignored if required dimensions is NULL.