Grid 0.7.0
Tensor_index.h File Reference

Go to the source code of this file.

Data Structures

class  TensorIndexRecursion< Level >
class  TensorIndexRecursion< 0 >

Macros

#define RemoveCRV(a)

Functions

 NAMESPACE_BEGIN (Grid)
template<int Level, class vtype>
accelerator_inline int indexRank (void)
template<int Level, class vtype>
accelerator_inline int isScalar (void)
template<int Level, class vtype>
accelerator_inline int isVector (void)
template<int Level, class vtype>
accelerator_inline int isMatrix (void)
template<int Level, class vtype>
accelerator_inline auto traceIndex (const vtype &arg) -> RemoveCRV(TensorIndexRecursion< Level >::traceIndex(arg))
template<int Level, class vtype>
accelerator_inline auto transposeIndex (const vtype &arg) -> RemoveCRV(TensorIndexRecursion< Level >::transposeIndex(arg))
template<int Level, class vtype>
accelerator_inline auto peekIndex (const vtype &arg, int i) -> RemoveCRV(TensorIndexRecursion< Level >::peekIndex(arg, 0))
template<int Level, class vtype>
accelerator_inline auto peekIndex (const vtype &arg, int i, int j) -> RemoveCRV(TensorIndexRecursion< Level >::peekIndex(arg, 0, 0))
template<int Level, class vtype>
accelerator_inline void pokeIndex (vtype &ret, const decltype(TensorIndexRecursion< Level >::peekIndex(ret, 0)) &arg, int i)
template<int Level, class vtype>
accelerator_inline void pokeIndex (vtype &ret, const decltype(TensorIndexRecursion< Level >::peekIndex(ret, 0, 0)) &arg, int i, int j)
 NAMESPACE_END (Grid)

Macro Definition Documentation

◆ RemoveCRV

Function Documentation

◆ NAMESPACE_BEGIN()

NAMESPACE_BEGIN ( Grid )

◆ indexRank()

template<int Level, class vtype>
accelerator_inline int indexRank ( void )

◆ isScalar()

template<int Level, class vtype>
accelerator_inline int isScalar ( void )

◆ isVector()

template<int Level, class vtype>
accelerator_inline int isVector ( void )

◆ isMatrix()

template<int Level, class vtype>
accelerator_inline int isMatrix ( void )

◆ traceIndex()

template<int Level, class vtype>
accelerator_inline auto traceIndex ( const vtype & arg) -> RemoveCRV(TensorIndexRecursion< Level >::traceIndex(arg))

◆ transposeIndex()

template<int Level, class vtype>
accelerator_inline auto transposeIndex ( const vtype & arg) -> RemoveCRV(TensorIndexRecursion< Level >::transposeIndex(arg))

◆ peekIndex() [1/2]

template<int Level, class vtype>
accelerator_inline auto peekIndex ( const vtype & arg,
int i ) -> RemoveCRV(TensorIndexRecursion< Level >::peekIndex(arg, 0))

◆ peekIndex() [2/2]

template<int Level, class vtype>
accelerator_inline auto peekIndex ( const vtype & arg,
int i,
int j ) -> RemoveCRV(TensorIndexRecursion< Level >::peekIndex(arg, 0, 0))

◆ pokeIndex() [1/2]

template<int Level, class vtype>
accelerator_inline void pokeIndex ( vtype & ret,
const decltype(TensorIndexRecursion< Level >::peekIndex(ret, 0)) & arg,
int i )

◆ pokeIndex() [2/2]

template<int Level, class vtype>
accelerator_inline void pokeIndex ( vtype & ret,
const decltype(TensorIndexRecursion< Level >::peekIndex(ret, 0, 0)) & arg,
int i,
int j )

◆ NAMESPACE_END()

NAMESPACE_END ( Grid )