File indexing completed on 2025-01-18 10:10:26
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef ROOT_Minuit2_VectorOuterProduct
0011 #define ROOT_Minuit2_VectorOuterProduct
0012
0013 #include "Minuit2/ABTypes.h"
0014 #include "Minuit2/ABObj.h"
0015
0016 namespace ROOT {
0017
0018 namespace Minuit2 {
0019
0020 template <class M, class T>
0021 class VectorOuterProduct {
0022
0023 public:
0024 VectorOuterProduct(const M &obj) : fObject(obj) {}
0025
0026 ~VectorOuterProduct() {}
0027
0028 typedef sym Type;
0029
0030 const M &Obj() const { return fObject; }
0031
0032 private:
0033 M fObject;
0034 };
0035
0036 template <class M, class T>
0037 inline ABObj<sym, VectorOuterProduct<ABObj<vec, M, T>, T>, T> Outer_product(const ABObj<vec, M, T> &obj)
0038 {
0039 return ABObj<sym, VectorOuterProduct<ABObj<vec, M, T>, T>, T>(VectorOuterProduct<ABObj<vec, M, T>, T>(obj));
0040 }
0041
0042 }
0043
0044 }
0045
0046 #endif