-
#include "tensorstore/index_space/dim_expression.h" -
template <DimensionIndex Rank>
auto tensorstore::DynamicDims(
const DynamicDimSpec (&dimensions)[Rank]); Starts a
DimExpressionwith 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
DynamicDimSpeccontaining aDimRangeSpecresolves to a variable number of dimensions, the resultant dimension selection always has a compile-time rank ofdynamic_rank.