-
#include "tensorstore/rank.h"
- constexpr const DynamicRank tensorstore::dynamic_rank = {};
Special rank value indicating a rank specified at run time.
The value
dynamic_rank
is implicitly convertible toDimensionIndex(-1)
, which at compile-time represents a rank to be specified at run-time, and at run-time represents an unknown rank.The syntax
dynamic_rank(n)
, forn >= 0
, is used to indicate a dynamic rank with an inline buffer that accommodates ranks up ton
. Note thatdynamic_rank
is equivalent todynamic_rank(0)
.
Related Types¶
- struct tensorstore::DynamicRank;
Type of the special
dynamic_rank
constant.