| 1 | // @(#)root/minuit2:$Id$cxx . . $ `<file>/extern/root/math/minuit2/inc/Minuit2/LaInverse.h`/ |
| 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_LaInverse |
| 11 | #define ROOT_Minuit2_LaInversecxx . . $ `extern/root/math/minuit2/inc/Minuit2/LaInverse.h:11:9`! |
| 12 | |
| 13 | #include "Minuit2/MatrixInverse.h"cxx . . $ `<file>/extern/root/math/minuit2/inc/Minuit2/MatrixInverse.h`/ |
| 14 | #include "Minuit2/LASymMatrix.h"cxx . . $ `<file>/extern/root/math/minuit2/inc/Minuit2/LASymMatrix.h`/ |
| 15 | |
| 16 | namespace ROOTcxx . . $ ROOT/ { |
| 17 | |
| 18 | namespace Minuit2cxx . . $ ROOT/Minuit2/ { |
| 19 | |
| 20 | /// LAPACK Algebra functions |
| 21 | /// specialize the Invert function for LASymMatrix |
| 22 | |
| 23 | inline ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, MatrixInversecxx . . $ ROOT/Minuit2/MatrixInverse#<symcxx . . $ ROOT/Minuit2/sym#, ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double>, double>, double> |
| 24 | Inversecxx . . $ ROOT/Minuit2/Inverse(e2f14bff8e8bf962).(const ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double> &obj) |
| 25 | { |
| 26 | return ABObjcxx . . $ ROOT/Minuit2/ABObj#ABObj(95ed6d455764239a).<symcxx . . $ ROOT/Minuit2/sym#, MatrixInversecxx . . $ ROOT/Minuit2/MatrixInverse#<symcxx . . $ ROOT/Minuit2/sym#, ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double>, double>, double>( |
| 27 | MatrixInversecxx . . $ ROOT/Minuit2/MatrixInverse#<symcxx . . $ ROOT/Minuit2/sym#, ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double>, double>(obj)); |
| 28 | } |
| 29 | |
| 30 | template <class T> |
| 31 | inline ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, MatrixInversecxx . . $ ROOT/Minuit2/MatrixInverse#<symcxx . . $ ROOT/Minuit2/sym#, ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double>, double>, double> |
| 32 | operatorcxx . . $ ROOT/Minuit2/`operator*`(7da460bf41b4dac2).*(T f, const ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, MatrixInversecxx . . $ ROOT/Minuit2/MatrixInverse#<symcxx . . $ ROOT/Minuit2/sym#, ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double>, double>, double> &inv) |
| 33 | { |
| 34 | return ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, MatrixInversecxx . . $ ROOT/Minuit2/MatrixInverse#<symcxx . . $ ROOT/Minuit2/sym#, ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double>, double>, double>(inv.Objcxx . . $ ROOT/Minuit2/ABObj#Obj(bdbd05d619d62250).(), f *cxx . . $ ROOT/Minuit2/`operator*`(590eb57c2206b219). inv.fcxx . . $ ROOT/Minuit2/ABObj#f(4e1d64b011eb729).()); |
| 35 | } |
| 36 | |
| 37 | template <class T> |
| 38 | inline ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, MatrixInversecxx . . $ ROOT/Minuit2/MatrixInverse#<symcxx . . $ ROOT/Minuit2/sym#, ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double>, double>, double> |
| 39 | operatorcxx . . $ ROOT/Minuit2/`operator/`(737b89b154957188)./(const ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, MatrixInversecxx . . $ ROOT/Minuit2/MatrixInverse#<symcxx . . $ ROOT/Minuit2/sym#, ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double>, double>, double> &inv, T f) |
| 40 | { |
| 41 | return ABObjcxx . . $ ROOT/Minuit2/ABObj#ABObj(95ed6d455764239a).<symcxx . . $ ROOT/Minuit2/sym#, MatrixInversecxx . . $ ROOT/Minuit2/MatrixInverse#<symcxx . . $ ROOT/Minuit2/sym#, ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double>, double>, double>(inv.Objcxx . . $ ROOT/Minuit2/ABObj#Obj(bdbd05d619d62250).(), inv.fcxx . . $ ROOT/Minuit2/ABObj#f(4e1d64b011eb729).() /cxx . . $ ROOT/Minuit2/`operator/`(c1496daca065cec6). f); |
| 42 | } |
| 43 | |
| 44 | template <class T> |
| 45 | inline ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, MatrixInversecxx . . $ ROOT/Minuit2/MatrixInverse#<symcxx . . $ ROOT/Minuit2/sym#, ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double>, double>, double> |
| 46 | operatorcxx . . $ ROOT/Minuit2/operator-(99df55043c23d806).-(const ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, MatrixInversecxx . . $ ROOT/Minuit2/MatrixInverse#<symcxx . . $ ROOT/Minuit2/sym#, ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double>, double>, double> &inv) |
| 47 | { |
| 48 | return ABObjcxx . . $ ROOT/Minuit2/ABObj#ABObj(95ed6d455764239a).<symcxx . . $ ROOT/Minuit2/sym#, MatrixInversecxx . . $ ROOT/Minuit2/MatrixInverse#<symcxx . . $ ROOT/Minuit2/sym#, ABObjcxx . . $ ROOT/Minuit2/ABObj#<symcxx . . $ ROOT/Minuit2/sym#, LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix#, double>, double>, double>(inv.Objcxx . . $ ROOT/Minuit2/ABObj#Obj(bdbd05d619d62250).(), T(-1.) *cxx . . $ ROOT/Minuit2/`operator*`(7da460bf41b4dac2). inv.fcxx . . $ ROOT/Minuit2/ABObj#f(4e1d64b011eb729).()); |
| 49 | } |
| 50 | |
| 51 | int Invertcxx . . $ ROOT/Minuit2/Invert(40e994b354b0a305).(LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix# &); |
| 52 | |
| 53 | int Invert_undef_symcxx . . $ ROOT/Minuit2/Invert_undef_sym(40e994b354b0a305).(LASymMatrixcxx . . $ ROOT/Minuit2/LASymMatrix# &); |
| 54 | |
| 55 | /* |
| 56 | template<class M> |
| 57 | inline ABObj<sym, MatrixInverse<sym, ABObj<sym, M, double>, double>, double> Inverse(const ABObj<sym, M, double>& obj) { |
| 58 | return ABObj<sym, MatrixInverse<sym, ABObj<sym, M, double>, double>, double>(MatrixInverse<sym, ABObj<sym, M, double>, |
| 59 | double>(obj)); |
| 60 | } |
| 61 | |
| 62 | inline ABObj<sym, MatrixInverse<sym, ABObj<sym, LASymMatrix, double>, double>, double> Inverse(const ABObj<sym, |
| 63 | LASymMatrix, double>& obj) { return ABObj<sym, MatrixInverse<sym, ABObj<sym, LASymMatrix, double>, double>, |
| 64 | double>(MatrixInverse<sym, ABObj<sym, LASymMatrix, double>, double>(obj)); |
| 65 | } |
| 66 | */ |
| 67 | |
| 68 | } // namespace Minuit2 |
| 69 | |
| 70 | } // namespace ROOT |
| 71 | |
| 72 | #endif // ROOT_Minuit2_LaInverse |