TensorStore
tensorstore::ConvertToContiguousLayoutPermutation
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"
    template <typename LayoutOrder, DimensionIndex Rank>
      
    requires IsContiguousLayoutOrder<LayoutOrder, Rank>
    void tensorstore::ConvertToContiguousLayoutPermutation(
        
    LayoutOrder source,
        
    span<DimensionIndex, Rank> target);

    Normalizes source to a permutation if it is not already a permutation.

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