File indexing completed on 2025-01-18 10:10:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef ROOT_Minuit2_MnVectorTransform
0011 #define ROOT_Minuit2_MnVectorTransform
0012
0013 #include "Minuit2/MnMatrix.h"
0014
0015 #include <vector>
0016
0017 namespace ROOT {
0018
0019 namespace Minuit2 {
0020
0021 class MnVectorTransform {
0022
0023 public:
0024 MnVectorTransform() {}
0025
0026 ~MnVectorTransform() {}
0027
0028 std::vector<double> operator()(const MnAlgebraicVector &avec) const
0029 {
0030
0031 std::vector<double> result;
0032 result.reserve(avec.size());
0033
0034 for (unsigned int i = 0; i < avec.size(); i++)
0035 result.push_back(avec(i));
0036
0037 return result;
0038 }
0039 };
0040
0041 }
0042
0043 }
0044
0045 #endif