Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
GSL1DMinimizerWrapper.h
Go to the documentation of this file.
1// @(#)root/mathmore:$Id$
2// Authors: L. Moneta, A. Zsenei 08/2005
3 /**********************************************************************
4 * *
5 * Copyright (c) 2004 moneta, CERN/PH-SFT *
6 * *
7 * This library is free software; you can redistribute it and/or *
8 * modify it under the terms of the GNU General Public License *
9 * as published by the Free Software Foundation; either version 2 *
10 * of the License, or (at your option) any later version. *
11 * *
12 * This library is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
15 * General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this library (see file COPYING); if not, write *
19 * to the Free Software Foundation, Inc., 59 Temple Place, Suite *
20 * 330, Boston, MA 02111-1307 USA, or contact the author. *
21 * *
22 **********************************************************************/
23
24// Header file for class GSL1DMinimizerWrapper
25//
26// Created by: moneta at Wed Dec 1 17:25:44 2004
27//
28// Last update: Wed Dec 1 17:25:44 2004
29//
30#ifndef ROOT_Math_GSL1DMinimizerWrapper
31#define ROOT_Math_GSL1DMinimizerWrapper
32
33#include "gsl/gsl_min.h"
34
35
36namespace ROOT {
37
38namespace Math {
39
40/**
41 wrapper class for gsl_min_fminimizer structure
42 @ingroup Min1D
43*/
45
46public:
47 GSL1DMinimizerWrapper( const gsl_min_fminimizer_type * T)
48 {
49 fMinimizer = gsl_min_fminimizer_alloc(T);
50 }
52 gsl_min_fminimizer_free(fMinimizer);
53 }
54
55// usually copying is non trivial, so we delete this
60
61 gsl_min_fminimizer * Get() const {
62 return fMinimizer;
63 }
64
65
66private:
67
68 gsl_min_fminimizer * fMinimizer;
69
70};
71
72} // end namespace Math
73} // end namespace ROOT
74
75#endif /* ROOT_Math_GSL1DMinimizerWrapper */
wrapper class for gsl_min_fminimizer structure
GSL1DMinimizerWrapper(const gsl_min_fminimizer_type *T)
GSL1DMinimizerWrapper & operator=(const GSL1DMinimizerWrapper &)=delete
GSL1DMinimizerWrapper(GSL1DMinimizerWrapper &&)=delete
gsl_min_fminimizer * Get() const
GSL1DMinimizerWrapper(const GSL1DMinimizerWrapper &)=delete
Namespace for new Math classes and functions.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...