TensorStore
tensorstore::SetPermutationFromStrides
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"
    void tensorstore::SetPermutationFromStrides(
        
    span<const Index> strides,
        
    span<DimensionIndex> permutation);

    Sets permutation to a permutation that matches the dimension order of strides.

    Specifically, permutation is ordered by descending stride magnitude, and then ascending dimension index.