ROOT
6.07/09
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
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
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
Definition:
StringConv.hxx:21
ROOT::Minuit2::LAVector::size
unsigned int size() const
Definition:
LAVector.h:198
ROOT::Minuit2::LAVector
Definition:
LAVector.h:33
ROOT::Minuit2::MnVectorTransform::~MnVectorTransform
~MnVectorTransform()
Definition:
MnVectorTransform.h:26
ROOT::Minuit2::MnVectorTransform
Definition:
MnVectorTransform.h:20
MnMatrix.h
ROOT::Minuit2::MnVectorTransform::MnVectorTransform
MnVectorTransform()
Definition:
MnVectorTransform.h:24
result
double result[121]
Definition:
testSampleQuantiles.cxx:17
ROOT::Minuit2::MnVectorTransform::operator()
std::vector< double > operator()(const MnAlgebraicVector &avec) const
Definition:
MnVectorTransform.h:28