Hammer  1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Convert.hh
Go to the documentation of this file.
1 ///
2 /// @file Convert.hh
3 /// @brief Tensor storage type conversion algorithm
4 ///
5 
6 //**** This file is a part of the HAMMER library
7 //**** Copyright (C) 2016 - 2020 The HAMMER Collaboration
8 //**** HAMMER is licensed under version 3 of the GPL; see COPYING for details
9 //**** Please note the MCnet academic guidelines; see GUIDELINES for details
10 
11 // -*- C++ -*-
12 #ifndef HAMMER_MATH_MULTIDIM_OPS_Convert
13 #define HAMMER_MATH_MULTIDIM_OPS_Convert
14 
16 
17 #include <complex>
18 
19 namespace Hammer {
20 
21 
22  namespace MultiDimensional {
23 
24  class IContainer;
25  class VectorContainer;
26  class SparseContainer;
27  class OuterContainer;
28 
29  namespace Ops {
30 
31  class Convert final {
32  public:
33  Convert(bool destinationSparse = true);
34 
36 
41 
42  private:
43 
46 
49 
50  private:
51 
53 
54  };
55 
56 
57  } // namespace Ops
58 
59  } // namespace MultiDimensional
60 
61 } // namespace Hammer
62 
63 
64 #endif
Convert(bool destinationSparse=true)
Definition: Convert.cc:37
Forward declarations of types used in the tensor classes.
IContainer * error(IContainer &)
Definition: Convert.cc:115
IContainer * operator()(VectorContainer &first)
Definition: Convert.cc:40
IContainer * toSparse(VectorContainer &first)
Definition: Convert.cc:88
IContainer * toVector(SparseContainer &first)
Definition: Convert.cc:66