TensorStore
tensorstore::StridedLayout<Rank, OriginKind, CKind>::set_rank
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
        • Data types
        • Array
          • EContainerKind
          • CByteStridedPointer
          • CStridedLayout
            • Data members
            • Types
            • Methods
            • Constructors
            • Assignment
              • Foperator=
              • Fset_rank
            • Accessors
            • Indexing
            • Friend functions
            • Related Types
            • 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/strided_layout.h"
    template <int&... ExplicitArgumentBarrier>
      
    requires (CKind == container)
    void tensorstore::StridedLayout<Rank, OriginKind, CKind>::set_rank(
        
    RankType rank);

    Sets the rank to the specified value.

    The existing origin, shape and byte_strides are not preserved.

    Back to top
    Previous tensorstore::StridedLayout<Rank, OriginKind, CKind>::operator=[convert]
    Next tensorstore::StridedLayout<Rank, OriginKind, CKind>::origin