All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
util::details::ExtractTensorDimension< RANK, DIM > Struct Template Reference

#include <TensorIndices.h>

Static Public Member Functions

static
TensorIndicesBasicTypes::DimSize_t 
dim (TensorIndices< RANK > const &t)
 
static
TensorIndicesBasicTypes::DimSize_t 
size (TensorIndices< RANK > const &t)
 

Detailed Description

template<unsigned int RANK, unsigned int DIM>
struct util::details::ExtractTensorDimension< RANK, DIM >

Template Parameters
RANKrank of the TensorIndices to be queried
DIMthe dimension to ask about (0 is the most outer one)

Helper to recourse tensor dimensions with C++ metaprogramming. Currently supported:

Definition at line 51 of file TensorIndices.h.

Member Function Documentation

template<unsigned int RANK, unsigned int DIM>
static TensorIndicesBasicTypes::DimSize_t util::details::ExtractTensorDimension< RANK, DIM >::dim ( TensorIndices< RANK > const &  t)
inlinestatic

Definition at line 583 of file TensorIndices.h.

584  { return ExtractTensorDimension<RANK-1U, DIM-1U>::dim(t.minorTensor()); }
static TensorIndicesBasicTypes::DimSize_t dim(TensorIndices< RANK > const &t)
template<unsigned int RANK, unsigned int DIM>
static TensorIndicesBasicTypes::DimSize_t util::details::ExtractTensorDimension< RANK, DIM >::size ( TensorIndices< RANK > const &  t)
inlinestatic

Definition at line 587 of file TensorIndices.h.

588  { return ExtractTensorDimension<RANK-1U, DIM-1U>::size(t.minorTensor()); }
static TensorIndicesBasicTypes::DimSize_t size(TensorIndices< RANK > const &t)

The documentation for this struct was generated from the following file: