Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
back_comp.h
Go to the documentation of this file.
1 #ifndef __BACK_COMP_H__
2 #define __BACK_COMP_H__
3 
4 /* pure double version of templated namespace CTF,
5  'using namespace CTF_double' cannot be used in combination in conjunction with 'using namespace CTF' */
6 namespace CTF_double {
7  typedef CTF::World World;
8 
13 
14  typedef CTF::Timer Timer;
18 }
19 
20 //typdefs for backwards compatibility to CTF_VERSION 10x
23 template <typename dtype>
24 class tCTF_World : public CTF::World {
25  public:
26  tCTF_World(int argc, char * const * argv) : CTF::World(argc, argv){}
27  tCTF_World(MPI_Comm comm = MPI_COMM_WORLD,
28  int argc = 0,
29  char * const * argv = NULL) : CTF::World(comm, argc, argv){}
30  tCTF_World(int order,
31  int const * lens,
32  MPI_Comm comm = MPI_COMM_WORLD,
33  int argc = 0,
34  char * const * argv = NULL) : CTF::World(order, lens, comm, argc, argv){}
35 
36 };
37 
48 
49 //this needs C++11, possible to do C++03 using struct
50 template <typename dtype>
52 template <typename dtype>
54 template <typename dtype>
56 template <typename dtype>
58 template <typename dtype>
60 
64 
65 typedef int64_t long_int;
66 typedef int64_t key;
67 
68 template <typename dtype>
70 
73 
74 
75 //deprecated
76 //enum CTF_OP { CTF_OP_SUM, CTF_OP_SUMABS, CTF_OP_SUMSQ, CTF_OP_MAX, CTF_OP_MIN, CTF_OP_MAXABS, CTF_OP_MINABS};
77 
78 
79 #endif
CTF::Timer Timer
Definition: back_comp.h:14
tkv_pair< double > kv_pair
Definition: back_comp.h:71
MPI_Comm comm
Definition: int_timer.cxx:22
CTF::Tensor< std::complex< double > > cCTF_Tensor
Definition: back_comp.h:43
CTF::Matrix CTF_Matrix
Definition: back_comp.h:39
Matrix class which encapsulates a 2D tensor.
Definition: matrix.h:18
times a specific symbol
Definition: timer.h:19
local process walltime measurement
Definition: timer.h:50
Vector class which encapsulates a 1D tensor.
Definition: vector.h:14
CTF::Vector Vector
Definition: back_comp.h:11
CTF::Function_timer Function_timer
Definition: back_comp.h:16
an instance of the CTF library (world) on a MPI communicator
Definition: world.h:19
tCTF_World(MPI_Comm comm=MPI_COMM_WORLD, int argc=0, char *const *argv=NULL)
Definition: back_comp.h:27
CTF::Idx_Tensor cCTF_Idx_Tensor
Definition: back_comp.h:47
int64_t long_int
Definition: back_comp.h:65
index-value pair used for tensor data input
Definition: tensor.h:28
Scalar class which encapsulates a 0D tensor.
Definition: scalar.h:13
a term is an abstract object representing some expression of tensors
Definition: timer.h:99
CTF::World cCTF_World
Definition: back_comp.h:22
CTF::Tensor Tensor
Definition: back_comp.h:9
CTF::World World
Definition: back_comp.h:7
CTF::Scalar CTF_Scalar
Definition: back_comp.h:41
CTF::Tensor CTF_Tensor
Definition: back_comp.h:38
CTF::Idx_Tensor CTF_Idx_Tensor
Definition: back_comp.h:42
epoch during which to measure timers
Definition: timer.h:69
CTF::Scalar Scalar
Definition: back_comp.h:12
CTF::Timer CTF_Timer
Definition: back_comp.h:61
CTF::Matrix Matrix
Definition: back_comp.h:10
CTF::Timer_epoch CTF_Timer_epoch
Definition: back_comp.h:63
tkv_pair< std::complex< double > > ckv_pair
Definition: back_comp.h:72
CTF::Flop_counter CTF_Flop_Counter
Definition: back_comp.h:62
CTF::Matrix< std::complex< double > > cCTF_Matrix
Definition: back_comp.h:44
CTF::Timer_epoch Timer_epoch
Definition: back_comp.h:15
tCTF_World(int argc, char *const *argv)
Definition: back_comp.h:26
Definition: apsp.cxx:17
an instance of a tensor within a CTF world
Definition: tensor.h:74
CTF::Scalar< std::complex< double > > cCTF_Scalar
Definition: back_comp.h:46
tCTF_World(int order, int const *lens, MPI_Comm comm=MPI_COMM_WORLD, int argc=0, char *const *argv=NULL)
Definition: back_comp.h:30
CTF::Flop_counter Flop_counter
Definition: back_comp.h:17
int64_t key
Definition: back_comp.h:66
CTF::World CTF_World
Definition: back_comp.h:21
CTF::Vector CTF_Vector
Definition: back_comp.h:40
CTF::Vector< std::complex< double > > cCTF_Vector
Definition: back_comp.h:45
a tensor with an index map associated with it (necessary for overloaded operators) ...
Definition: idx_tensor.h:15