TensorStore
tensorstore::SetPermutation
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
        • Data types
        • Array
          • EContainerKind
          • CByteStridedPointer
          • CStridedLayout
            • Data members
            • Types
            • Methods
            • Constructors
            • Assignment
            • Accessors
            • Indexing
            • Friend functions
            • Related Types
              • EContiguousLayoutOrder
              • CContiguousLayoutPermutation
                • Constructors
                • Related Functions
                  • FSetPermutation
                  • FIsValidPermutation
                  • FPermutationMatchesOrder
                  • FInvertPermutation
                  • FConvertToContiguousLayoutPermutation
                  • FSetPermutationFromStrides
              • TStridedLayoutView
            • Related Constants
            • Related Functions
            • Broadcasting
          • CElementPointer
          • CArray
          • CTransformedArray
          • Transformation
          • Iteration
        • Key-value storage
        • Downsampling
        • Utilities
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    #include "tensorstore/contiguous_layout.h"
    void tensorstore::SetPermutation(ContiguousLayoutOrder order,
                                     
    span<DimensionIndex> permutation);

    Sets permutation to ascending or descending order.

    If order == c_order, sets permutation to {0, 1, ..., permutation.size()-1}.

    Otherwise, sets permutation to {permutation.size()-1, ..., 1, 0}.

    Back to top
    Previous tensorstore::ContiguousLayoutPermutation<Rank>::ContiguousLayoutPermutation[span]
    Next tensorstore::IsValidPermutation