TensorStore
tensorstore::IndexDomain<Rank, CKind>::IndexDomain[shape]
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
          • TIndex
          • TDimensionIndex
          • CIndexInterval
          • COptionallyImplicitIndexInterval
          • CIndexDomainDimension
          • TInlineRank
          • CRankConstraint
          • CBox
          • TDimensionSet
          • CIndexDomain
            • Data members
            • Types
            • Constructors
              • FIndexDomain [default]
              • FIndexDomain [rank]
              • FIndexDomain [shape]
              • FIndexDomain [box]
              • FIndexDomain [labels]
              • FIndexDomain [convert]
              • FIndexDomain [unchecked]
            • Methods
            • Friend functions
            • Related Types
            • Related Constants
            • Related Functions
            • Composition
          • CIndexTransform
          • VIsIndexArray
          • CDimExpression
          • 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}).

    Back to top
    Previous tensorstore::IndexDomain<Rank, CKind>::IndexDomain[rank]
    Next tensorstore::IndexDomain<Rank, CKind>::IndexDomain[box]