TensorStore
tensorstore::StridedLayout<Rank, OriginKind, CKind>::origin
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
              • F origin
              • F byte_strides
              • F shape
              • F origin_byte_offset
              • F num_elements
              • F domain
            • Indexing
            • Friend functions
            • Related Types
            • 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/strided_layout.h"
    span<const Index, RankConstraint::FromInlineRank(Rank)>
    tensorstore::StridedLayout<Rank, OriginKind, CKind>::origin() const;
    span<MaybeConstOriginIndex, RankConstraint::FromInlineRank(Rank)>
    tensorstore::StridedLayout<Rank, OriginKind, CKind>::origin();

    Returns the origin vector of size rank().

    For the non-const overload, the returned span has non-const Index elements if container_kind == container and array_origin_kind == offset_origin.