Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
BasicMinimumError.cxx
Go to the documentation of this file.
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
11
12#include "Minuit2/MnMatrix.h"
13
14#include "Minuit2/MnPrint.h"
15
16namespace ROOT {
17
18namespace Minuit2 {
19
21{
22 // calculate Heassian: inverse of error matrix
24 int ifail = Invert(tmp);
25 if (ifail != 0) {
26 MnPrint print("BasicMinimumError::Hessian");
27 print.Warn("Inversion fails; return diagonal matrix");
29 for (unsigned int i = 0; i < fMatrix.Nrow(); i++) {
30 tmp2(i, i) = 1. / fMatrix(i, i);
31 }
32 return tmp2;
33 }
34 return tmp;
35}
36
37} // namespace Minuit2
38
39} // namespace ROOT
MnAlgebraicSymMatrix Hessian() const
Class describing a symmetric matrix of size n.
Definition LASymMatrix.h:45
unsigned int Nrow() const
void Warn(const Ts &... args)
Definition MnPrint.h:126
int Invert(LASymMatrix &)
Definition LaInverse.cxx:21
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...