toPos.RdCalculates the position of a tensor index, which specified in any possible way.
a tensor
a vector specifying the indices as positions or names
The names of the indices of the tensor. This can be specified instead of M.
Matches the index in its covariate and contravariate form.
the list dimension, all operations are done in parallel for all levels of these dimensions. Thus in the case of toPos all other dimensions are returned if they are not specified.
not used
If TRUE does give an error on missing dimension. Rather returns NA in that place.
a numeric vector giving the positions of the dimensions selected.
The function is only here to provide a consistent interface which provides the same functionality for positions and characters.