TensorStore
tensorstore::RankConstraint::Add
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
          • TIndex
          • TDimensionIndex
          • CIndexInterval
          • COptionallyImplicitIndexInterval
          • CIndexDomainDimension
          • TInlineRank
          • CRankConstraint
            • Constructors
            • Data members
            • Conversion operators
            • Methods
            • Composition
              • FAnd
              • FAdd
              • FSubtract
            • Comparison
            • Related Functions
          • CBox
          • TDimensionSet
          • CIndexDomain
          • 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/rank.h"
    static constexpr RankConstraint
    tensorstore::RankConstraint::Add(DimensionIndex a, DimensionIndex b);
    static constexpr RankConstraint tensorstore::RankConstraint::Add(
        
    std::initializer_list<DimensionIndex> constraints);

    Adds the rank constraints.

    • If any constraint is equal to dynamic_rank, the result is dynamic_rank.

    • Otherwise, the result is the sum of the two fixed ranks.

    Back to top
    Previous tensorstore::RankConstraint::And
    Next tensorstore::RankConstraint::Subtract