TensorStore
tensorstore::PermutationMatchesOrder
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
        • Data types
        • Array
          • E ContainerKind
          • C ByteStridedPointer
          • C StridedLayout
            • Data members
            • Types
            • Methods
            • Constructors
            • Assignment
            • Accessors
            • Indexing
            • Friend functions
            • Related Types
              • E ContiguousLayoutOrder
              • C ContiguousLayoutPermutation
                • Constructors
                • Related Functions
                  • F SetPermutation
                  • F IsValidPermutation
                  • F PermutationMatchesOrder
                  • F InvertPermutation
                  • F ConvertToContiguousLayoutPermutation
                  • F SetPermutationFromStrides
              • T StridedLayoutView
            • Related Constants
            • Related Functions
            • Broadcasting
          • C ElementPointer
          • C Array
          • C TransformedArray
          • 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"
    bool tensorstore::PermutationMatchesOrder(
        
    span<const DimensionIndex> permutation,
        
    ContiguousLayoutOrder order);

    Returns true if permutation is {0, 1, ..., permutation.size()-1} if order == c_order, or {permutation.size() - 1, ..., 1, 0} if order == fortran_order.