Logo ROOT  
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#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
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
unsigned int size() const
Definition: LAVector.h:227
std::vector< double > operator()(const MnAlgebraicVector &avec) const
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.