ROOT
6.13/01
Reference Guide
math
minuit2
inc
Minuit2
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
20
class
MnVectorTransform
{
21
22
public
:
23
24
MnVectorTransform
() {}
25
26
~MnVectorTransform
() {}
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
ROOT
Namespace for new ROOT classes and functions.
Definition:
TFoamSampler.h:19
ROOT::Minuit2::LAVector
Definition:
LAVector.h:33
ROOT::Minuit2::MnVectorTransform::~MnVectorTransform
~MnVectorTransform()
Definition:
MnVectorTransform.h:26
ROOT::Minuit2::MnVectorTransform::operator()
std::vector< double > operator()(const MnAlgebraicVector &avec) const
Definition:
MnVectorTransform.h:28
ROOT::Minuit2::MnVectorTransform
Definition:
MnVectorTransform.h:20
MnMatrix.h
ROOT::Minuit2::MnVectorTransform::MnVectorTransform
MnVectorTransform()
Definition:
MnVectorTransform.h:24
ROOT::Minuit2::LAVector::size
unsigned int size() const
Definition:
LAVector.h:198