TensorStore
tensorstore::PermutationMatchesOrder
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"
    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.

    Back to top
    Previous tensorstore::IsValidPermutation
    Next tensorstore::InvertPermutation