TensorStore
tensorstore::IndexDomain<Rank, CKind>::IndexDomain[shape]
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
          • T Index
          • T DimensionIndex
          • C IndexInterval
          • C OptionallyImplicitIndexInterval
          • C IndexDomainDimension
          • T InlineRank
          • C RankConstraint
          • C Box
          • T DimensionSet
          • C IndexDomain
            • Data members
            • Types
            • Constructors
              • F IndexDomain [default]
              • F IndexDomain [rank]
              • F IndexDomain [shape]
              • F IndexDomain [box]
              • F IndexDomain [labels]
              • F IndexDomain [convert]
              • F IndexDomain [unchecked]
            • Methods
            • Friend functions
            • Related Types
            • Related Constants
            • Related Functions
            • Composition
          • C IndexTransform
          • V IsIndexArray
          • C DimExpression
          • Alignment
        • Data types
        • Array
        • Key-value storage
        • Downsampling
        • Utilities
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    #include "tensorstore/index_space/index_domain.h"
    explicit tensorstore::IndexDomain<Rank, CKind>::IndexDomain(
        
    span<const Index, Rank> shape);
    template <DimensionIndex N>
      
    requires (RankConstraint::Implies(N, Rank))
    explicit tensorstore::IndexDomain<Rank, CKind>::IndexDomain(
        
    const Index (&shape)[N]);

    Constructs a domain with the specified shape.

    Can be called with a braced list, e.g. IndexDomain({2, 3, 4}).