Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#include <vector>
16
17namespace ROOT {
18
19namespace Minuit2 {
20
22
23public:
25
27
28 std::vector<double> operator()(const MnAlgebraicVector &avec) const
29 {
30
31 std::vector<double> result;
32 result.reserve(avec.size());
33
34 for (unsigned int i = 0; i < avec.size(); i++)
35 result.push_back(avec(i));
36
37 return result;
38 }
39};
40
41} // namespace Minuit2
42
43} // namespace ROOT
44
45#endif // ROOT_Minuit2_MnVectorTransform
unsigned int size() const
Definition LAVector.h:227
std::vector< double > operator()(const MnAlgebraicVector &avec) const
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...