SUNphi  1.0
SUNphi::TensComp< T, Size, MaxKnownSubMultiple > Struct Template Reference

#include <TensComp.hpp>

Inheritance diagram for SUNphi::TensComp< T, Size, MaxKnownSubMultiple >:
SUNphi::BaseTensComp

Public Types

using type = T
 Mapped type.
 

Public Member Functions

typeoperator~ ()
 
const typeoperator~ () const
 

Static Public Member Functions

static constexpr const char * name ()
 Provide a dummy name, maybe we can improve it. More...
 

Static Public Attributes

static constexpr int size =Size
 Size of the tensor component (max index value)
 
static constexpr bool isDynamic =(Size==DYNAMIC)
 Report if the component has dynamic size.
 
static constexpr int maxKnownSubMultiple =(isDynamic?MaxKnownSubMultiple:size)
 If DYNAMIC size, this is used to provide a submultiple of "size".
 
template<typename F >
static constexpr bool isVectorizable =canBeFactorOfSIMDVector<F>(Size)
 Check if compatible with vectorization.
 

Detailed Description

template<class T, int Size = DYNAMIC, int MaxKnownSubMultiple = 1>
struct SUNphi::TensComp< T, Size, MaxKnownSubMultiple >

Tensor Component

A tensor component is defined by an internal type and the associated size, which can be known at compile-time or can be made DYNAMIC, to be specified at runtime in the storage class

Definition at line 33 of file TensComp.hpp.

Member Function Documentation

template<class T, int Size = DYNAMIC, int MaxKnownSubMultiple = 1>
static constexpr const char* SUNphi::TensComp< T, Size, MaxKnownSubMultiple >::name ( )
inlinestatic

Provide a dummy name, maybe we can improve it.

Returns the name of the type

Definition at line 56 of file TensComp.hpp.

template<class T, int Size = DYNAMIC, int MaxKnownSubMultiple = 1>
type& SUNphi::TensComp< T, Size, MaxKnownSubMultiple >::operator~ ( )
inline

Cast operator to class type

Definition at line 40 of file TensComp.hpp.

template<class T, int Size = DYNAMIC, int MaxKnownSubMultiple = 1>
const type& SUNphi::TensComp< T, Size, MaxKnownSubMultiple >::operator~ ( ) const
inline

Constant cast operator to class type

Definition at line 40 of file TensComp.hpp.


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