Skip to content
TensorStore
tensorstore::IndexInterval::Closed
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
          • T Index
          • T DimensionIndex
          • C IndexInterval
            • Constructors
              • F IndexInterval
              • F Infinite
              • F UncheckedClosed
              • F Closed
                • Returns
                • Error absl::StatusCode::kInvalidArgument
              • F UncheckedHalfOpen
              • F HalfOpen
              • F UncheckedSized
              • F Sized
            • Methods
            • Accessors
            • Friend functions
            • Related Functions
            • Related Types
          • C OptionallyImplicitIndexInterval
          • C IndexDomainDimension
          • T InlineRank
          • C RankConstraint
          • C Box
          • T DimensionSet
          • C IndexDomain
          • 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
    • Returns
    • Error absl::StatusCode::kInvalidArgument
    #include "tensorstore/index_interval.h"
    static Result<IndexInterval>
    tensorstore::IndexInterval::Closed(Index inclusive_min,
                                       
    Index inclusive_max);

    Tries to construct an interval from inclusive lower and upper bounds.

    Returns:¶

    UncheckedClosed(inclusive_min, inclusive_max)

    Error absl::StatusCode::kInvalidArgument:¶

    if !ValidClosed(inclusive_min, inclusive_max).