-
#include "tensorstore/index_space/dim_expression.h"
-
template <DimensionIndex Rank>
auto tensorstore::DynamicDims(
const DynamicDimSpec (&dimensions)[Rank]); Starts a
DimExpression
with a variable number of dimensions.This permits dynamic dimension specifications to be specified using a braced list, e.g.
DynamicDims({DimRangeSpec(1, 5, 2), 5, 7, "x"})
.Since a
DynamicDimSpec
containing aDimRangeSpec
resolves to a variable number of dimensions, the resultant dimension selection always has a compile-time rank ofdynamic_rank
.