Hammer  1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AddAt.hh
Go to the documentation of this file.
1 ///
2 /// @file AddAt.hh
3 /// @brief Sub-tensor block insertion 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_ADDAT
13 #define HAMMER_MATH_MULTIDIM_OPS_ADDAT
14 
16 
17 namespace Hammer {
18 
19 
20  namespace MultiDimensional {
21 
22  class IContainer;
23  class VectorContainer;
24  class SparseContainer;
25  class OuterContainer;
26 
27  namespace Ops {
28 
29  class AddAt final {
30  public:
31  AddAt(IndexType position, IndexType coord);
32 
33  IContainer* operator()(VectorContainer& first, const VectorContainer& second);
34  IContainer* operator()(SparseContainer& first, const SparseContainer& second);
35  IContainer* operator()(VectorContainer& first, const SparseContainer& second);
36  IContainer* operator()(SparseContainer& first, const VectorContainer& second);
37  IContainer* operator()(SparseContainer& first, const OuterContainer& second);
38  IContainer* operator()(VectorContainer& first, const OuterContainer& second);
39  IContainer* operator()(OuterContainer& first, const IContainer& second);
40 
41  IContainer* operator()(IContainer& first, const IContainer& second);
42 
44 
45  private:
48  };
49 
50  } // namespace Ops
51 
52  } // namespace MultiDimensional
53 
54 } // namespace Hammer
55 
56 
57 #endif
IContainer * error(IContainer &, const IContainer &)
Definition: AddAt.cc:101
IContainer * operator()(VectorContainer &first, const VectorContainer &second)
Definition: AddAt.cc:38
uint16_t IndexType
Forward declarations of types used in the tensor classes.
AddAt(IndexType position, IndexType coord)
Definition: AddAt.cc:34