SUNphi  1.0
TensStor.hpp File Reference

Header file for the definition of a storage space for a tensor. More...

#include <metaprogramming/SFINAE.hpp>
#include <metaprogramming/SwallowSemicolon.hpp>
#include <system/Memory.hpp>
#include <tens/Indexer.hpp>
#include <tens/TensKind.hpp>
#include <cstdio>

Go to the source code of this file.

Classes

class  SUNphi::TensStor< TK, T >
 

Macros

#define PROVIDE_EVAL(QUALIFIER)
 Defines a const or non-const evaluator. More...
 

Detailed Description

Header file for the definition of a storage space for a tensor.

Definition in file TensStor.hpp.

Macro Definition Documentation

#define PROVIDE_EVAL (   QUALIFIER)
Value:
\
template <class...Args, /* Arguments type */ \
class=ConstrainAreSame<int,Args...>> /* Constrain all args to be integer */ \
QUALIFIER T& eval(const Args&...args) QUALIFIER \
{ \
const int id=index<TK>(dynSizes,forw<const Args>(args)...); \
/* printf("Index: %d\n",id);*/ /*debug*/ \
\
return v[id]; \
}
Tens< Tk, double > T
Tensor class of the expression.
Definition: RelBind.hpp:263
Args && args
< Function to cal
Definition: LoopUnroll.hpp:22

Defines a const or non-const evaluator.

Definition at line 57 of file TensStor.hpp.