jit.dimmap

Remap and/or invert matrix dimensions

Description

The jit.dimmap object allows the remapping and/or inversion of matrix dimensions. Somewhat similar to the jit.transpose object, however any dimension may be mapped to any other dimension as well as inverted. Note that the input to output map may not contain any duplicates. Redundant dimensions of size 1 may be inserted by using a map value of -1 at the corresponding dimension index.