Skip to content
TensorStore
tensorstore::IdentityTransform[shape]
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
          • TIndex
          • TDimensionIndex
          • CIndexInterval
          • COptionallyImplicitIndexInterval
          • CIndexDomainDimension
          • TInlineRank
          • CRankConstraint
          • CBox
          • TDimensionSet
          • CIndexDomain
          • CIndexTransform
            • Data members
            • Constructors
            • Methods
            • Accessors
            • Friend functions
            • Related Types
            • Related Constants
            • Related Functions
            • Identity transform
              • FIdentityTransform [rank]
              • FIdentityTransform [box]
              • FIdentityTransform [labels]
              • FIdentityTransformLike [transform]
              • FIdentityTransform [domain]
              • FIdentityTransformLike [array]
              • FIdentityTransform [shape]
                • Requires
            • Bounds propagation
          • 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
    • Requires
    #include "tensorstore/index_space/index_transform.h"
    template <typename Shape>
    auto tensorstore::IdentityTransform(const Shape& shape);
    template <DimensionIndex Rank>
    IndexTransform<Rank, Rank>
    tensorstore::IdentityTransform(const Index (&shape)[Rank]);

    Returns an identity transform with an origin of 0 and the specified shape.

    The lower and upper bounds of the returned transform are explicit.

    Requires:¶

    shape is a span-compatible vector with a span::value_type of Index.

    Back to top
    Previous tensorstore::IdentityTransformLike[array]
    Next tensorstore::PropagateBounds