LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "TensorIndices.h"
Public Types | |
using | Index_t = TensorIndicesBasicTypes::Index_t |
using | DimSize_t = TensorIndicesBasicTypes::DimSize_t |
using | LinIndex_t = TensorIndicesBasicTypes::LinIndex_t |
Public Member Functions | |
TensorIndices (DimSize_t dim) | |
template<typename ITER , typename = std::enable_if_t <std::is_convertible<decltype(*(ITER())), DimSize_t>::value, void>> | |
TensorIndices (ITER dimIter) | |
LinIndex_t | operator() (Index_t index) const |
template<typename ITER > | |
std::enable_if_t< std::is_convertible< decltype(*(ITER())), DimSize_t >::value, LinIndex_t > | operator() (ITER indexIter) const |
LinIndex_t | at (Index_t index) const |
template<typename ITER > | |
std::enable_if_t< std::is_convertible< decltype(*(ITER())), DimSize_t >::value, LinIndex_t > | at (ITER indexIter) const |
bool | has (Index_t index) const |
template<typename ITER > | |
std::enable_if_t< std::is_convertible< decltype(*(ITER())), DimSize_t >::value, bool > | has (ITER indexIter) const |
template<unsigned int DIM = 0> | |
DimSize_t | size () const |
template<unsigned int DIM> | |
DimSize_t | dim () const |
template<unsigned int DIM> | |
bool | hasIndex (Index_t index) const |
bool | hasLinIndex (LinIndex_t linIndex) const |
bool | operator== (TensorIndices< 1U > const &t) const |
bool | operator!= (TensorIndices< 1U > const &t) const |
Static Public Member Functions | |
static constexpr unsigned int | rank () |
Protected Member Functions | |
Index_t | checkOuterIndex (Index_t index) const |
DimSize_t | dim0 () const |
Returns the size of the outer dimension. More... | |
Private Member Functions | |
DimSize_t | totalSize () const |
Returns the total size of this tensor. More... | |
Private Attributes | |
DimSize_t | dimSize |
size of the largest dimension More... | |
Friends | |
template<unsigned int R, unsigned int D> | |
struct | details::ExtractTensorDimension |
Specialisation for vector index (rank 1).
Documentation is in the general template. No public methods are added respect to it (but the minor()
method is removed).
Definition at line 64 of file TensorIndices.h.
using util::TensorIndices< 1U >::DimSize_t = TensorIndicesBasicTypes::DimSize_t |
Definition at line 69 of file TensorIndices.h.
using util::TensorIndices< 1U >::Index_t = TensorIndicesBasicTypes::Index_t |
Definition at line 67 of file TensorIndices.h.
using util::TensorIndices< 1U >::LinIndex_t = TensorIndicesBasicTypes::LinIndex_t |
Definition at line 71 of file TensorIndices.h.
|
inline |
Definition at line 76 of file TensorIndices.h.
References fhicl::detail::atom::value().
|
inline |
Definition at line 83 of file TensorIndices.h.
|
inline |
Definition at line 93 of file TensorIndices.h.
|
inline |
Definition at line 98 of file TensorIndices.h.
|
inlineprotected |
Definition at line 137 of file TensorIndices.h.
References util::flags::to_string().
|
inline |
Definition at line 115 of file TensorIndices.h.
|
inlineprotected |
Returns the size of the outer dimension.
Definition at line 146 of file TensorIndices.h.
|
inline |
Definition at line 101 of file TensorIndices.h.
|
inline |
Definition at line 107 of file TensorIndices.h.
|
inline |
Definition at line 122 of file TensorIndices.h.
|
inline |
Definition at line 128 of file TensorIndices.h.
|
inline |
|
inline |
Definition at line 86 of file TensorIndices.h.
|
inline |
Definition at line 91 of file TensorIndices.h.
|
inline |
|
inlinestatic |
Definition at line 73 of file TensorIndices.h.
|
inline |
Definition at line 112 of file TensorIndices.h.
Referenced by operator!=(), util::TensorIndices< DIMS >::operator()(), and operator==().
|
inlineprivate |
Returns the total size of this tensor.
Definition at line 155 of file TensorIndices.h.
|
friend |
Definition at line 150 of file TensorIndices.h.
|
private |
size of the largest dimension
Definition at line 152 of file TensorIndices.h.