TypeTensor - v0.1.0
    Preparing search index...

    Type Alias PermuteOp<Input, Axes>

    PermuteOp: IsValidPermutation<Input["__shape"], Axes> extends true
        ? StorageTransformation<
            "permute",
            TensorStorage<
                Input["__dtype"],
                Permute<Input["__shape"], Axes>,
                Permute<Input["__strides"], Axes>,
                TransposeLayout<Input["__layout"]>,
            > & { __permuteAxes: Axes },
            readonly [Input],
        >
        : never & {
            __error: `Invalid permutation axes for tensor of rank ${Input["__shape"]["length"]}`;
            __hint: "Axes must contain each dimension index exactly once";
        }

    Permute operation storage transformation

    Rearranges tensor dimensions according to the specified axes order. Each axis index must appear exactly once.

    Type Parameters

    type A = TensorStorage<Float32, [2, 3, 4]>; // Shape: [2, 3, 4]
    type B = PermuteOp<A, [2, 0, 1]>; // Shape: [4, 2, 3]
    type C = PermuteOp<A, [1, 0, 2]>; // Shape: [3, 2, 4]