The operation that should have its dimensions reordered.
Determines how the dimensions are permuted.
Notes: Currently only implemented for rank 2 tensors.
import dopt.core : evaluate; auto t1 = float32([2, 2], [1.0f, 2.0f, 3.0f, 4.0f]).transpose([1, 0]); assert(t1.evaluate().get!float == [1.0f, 3.0f, 2.0f, 4.0f]);
Reorders the dimensions of output of an operation.