#include "tensorstore/index_space/index_transform.h"
IndexTransform<InputRank, OutputRank> tensorstore::
    
IndexTransform<InputRank, OutputRank, CKind>::
TransposeOutput(
        
span<const DimensionIndex, OutputRank> permutation) const&;
IndexTransform<InputRank, OutputRank> tensorstore::
    
IndexTransform<InputRank, OutputRank, CKind>::
TransposeOutput(
        
span<const DimensionIndex, OutputRank> permutation) &&;

Returns a new transform with the output dimension order permuted.

If !valid(), returns an invalid view.

Parameters:
span<const DimensionIndex, OutputRank> permutation

Permutation of 0, ..., output_rank()-1, where permutation[i] specifies the dimension of the existing transform that corresponds to output dimension i of the new transform.

Dchecks:

permutation is a valid permutation.