Skip to content
TensorStore
tensorstore::RankConstraint::Subtract
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
                • Pre
            • 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
    • Pre
    #include "tensorstore/rank.h"
    static constexpr RankConstraint
    tensorstore::RankConstraint::Subtract(DimensionIndex a,
                                          
    DimensionIndex b);

    Subtracts the rank constraints.

    • If a or b is equal to dynamic_rank, the result is dynamic_rank.

    • Otherwise, the result is equal to the difference of the two fixed ranks.

    Pre:¶

    GreaterEqualOrUnspecified(a, b)

    Back to top
    Previous tensorstore::RankConstraint::Add
    Next tensorstore::RankConstraint::Implies