1 // @(#)root/minuit2:$Id$
2 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei   2003-2005
3 
4 /**********************************************************************
5  *                                                                    *
6  * Copyright (c) 2005 LCG ROOT Math team,  CERN/PH-SFT                *
7  *                                                                    *
8  **********************************************************************/
9 
10 #ifndef ROOT_Minuit2_VectorOuterProduct
11 #define ROOT_Minuit2_VectorOuterProduct
12 
13 #include "Minuit2/ABTypes.h"
14 #include "Minuit2/ABObj.h"
15 
16 namespace ROOT {
17 
18 namespace Minuit2 {
19 
20 template <class M, class T>
21 class VectorOuterProduct {
22 
23 public:
VectorOuterProduct(const M & obj)24    VectorOuterProduct(const M &obj) : fObject(obj) {}
25 
~VectorOuterProduct()26    ~VectorOuterProduct() {}
27 
28    typedef sym Type;
29 
Obj()30    const M &Obj() const { return fObject; }
31 
32 private:
33    M fObject;
34 };
35 
36 template <class M, class T>
Outer_product(const ABObj<vec,M,T> & obj)37 inline ABObj<sym, VectorOuterProduct<ABObj<vec, M, T>, T>, T> Outer_product(const ABObj<vec, M, T> &obj)
38 {
39    return ABObj<sym, VectorOuterProduct<ABObj<vec, M, T>, T>, T>(VectorOuterProduct<ABObj<vec, M, T>, T>(obj));
40 }
41 
42 } // namespace Minuit2
43 
44 } // namespace ROOT
45 
46 #endif // ROOT_Minuit2_VectorOuterProduct
47