-
#include "tensorstore/rank.h"
-
template <typename SourceRef, DimensionIndex TargetRank>
using tensorstore::RebindRank; Evaluates to a type similar to
SourceRef
but with a static rank ofTargetRank
.Supported types include
StaticOrDynamicRank<Rank>
(i.e.DimensionIndex
andstd::integral_constant<DimensionIndex, Rank>
),Array
,StridedLayout
,Box
,TransformedArray
,TensorStore
.- Template Parameters:¶
- typename SourceRef¶
Optionally
const
- and/or reference-qualified source type. Any qualifiers are ignored.- DimensionIndex TargetRank¶
Target rank value.