ROOT  6.06/09
Reference Guide
MnVectorTransform.h
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 
10 #ifndef ROOT_Minuit2_MnVectorTransform
11 #define ROOT_Minuit2_MnVectorTransform
12 
13 #include "Minuit2/MnMatrix.h"
14 
15 namespace ROOT {
16 
17  namespace Minuit2 {
18 
19 
21 
22 public:
23 
25 
27 
28  std::vector<double> operator()(const MnAlgebraicVector& avec) const {
29 
30  std::vector<double> result; result.reserve(avec.size());
31 
32  for(unsigned int i = 0; i < avec.size(); i++) result.push_back(avec(i));
33 
34  return result;
35  }
36 
37 };
38 
39  } // namespace Minuit2
40 
41 } // namespace ROOT
42 
43 #endif // ROOT_Minuit2_MnVectorTransform
Namespace for new ROOT classes and functions.
Definition: ROOT.py:1
unsigned int size() const
Definition: LAVector.h:198
double result[121]
std::vector< double > operator()(const MnAlgebraicVector &avec) const