template<unsigned int RANK, unsigned int DIM>
struct util::details::ExtractTensorDimension< RANK, DIM >
- Template Parameters
-
RANK | rank of the TensorIndices to be queried |
DIM | the dimension to ask about (0 is the most outer one) |
Helper to recourse tensor dimensions with C++ metaprogramming. Currently supported:
dim(t)
: if DIM
is 0, the request is for the outer dimension of t
, which is immediately returned; otherwise, another extractor is queried on the minor()
of t
, decreasing DIM
by 1
size(t)
: if DIM
is 0, the request is for the outer dimension of t
, which is immediately returned; otherwise, another extractor is queried on the minor()
of t
, decreasing DIM
by 1
Definition at line 51 of file TensorIndices.h.