ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
GSLRootHelper.cxx
Go to the documentation of this file.
1
// @(#)root/mathmore:$Id$
2
// Authors: L. Moneta, A. Zsenei 08/2005
3
4
/**********************************************************************
5
* *
6
* Copyright (c) 2004 ROOT Foundation, CERN/PH-SFT *
7
* *
8
* This library is free software; you can redistribute it and/or *
9
* modify it under the terms of the GNU General Public License *
10
* as published by the Free Software Foundation; either version 2 *
11
* of the License, or (at your option) any later version. *
12
* *
13
* This library is distributed in the hope that it will be useful, *
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16
* General Public License for more details. *
17
* *
18
* You should have received a copy of the GNU General Public License *
19
* along with this library (see file COPYING); if not, write *
20
* to the Free Software Foundation, Inc., 59 Temple Place, Suite *
21
* 330, Boston, MA 02111-1307 USA, or contact the author. *
22
* *
23
**********************************************************************/
24
25
// Implementation file for class GSLRootHelper
26
//
27
// Created by: moneta at Sun Nov 14 21:34:15 2004
28
//
29
// Last update: Sun Nov 14 21:34:15 2004
30
//
31
32
#include "
Math/GSLRootHelper.h
"
33
34
#include "gsl/gsl_roots.h"
35
36
namespace
ROOT
{
37
namespace
Math
{
38
39
namespace
GSLRootHelper
{
40
41
42
int
TestInterval
(
double
xlow,
double
xup,
double
epsAbs,
double
epsRel) {
43
44
return
gsl_root_test_interval( xlow, xup, epsAbs, epsRel);
45
}
46
47
int
TestDelta
(
double
x1,
double
x0,
double
epsAbs,
double
epsRel) {
48
// be careful is inverted with respect to GSL (don't know why )
49
return
gsl_root_test_delta( x1, x0, epsRel, epsAbs);
50
}
51
52
int
TestResidual
(
double
f
,
double
epsAbs) {
53
54
return
gsl_root_test_residual(
f
, epsAbs);
55
}
56
57
}
58
59
}
// namespace Math
60
}
// namespace ROOT
GSLRootHelper.h
f
#define f(i)
Definition
RSha256.hxx:104
ROOT::Math::GSLRootHelper
Helper functions to test convergence of Root-Finding algorithms.
Definition
GSLRootHelper.h:45
ROOT::Math::GSLRootHelper::TestInterval
int TestInterval(double xlow, double xup, double epsAbs, double epsRel)
Definition
GSLRootHelper.cxx:42
ROOT::Math::GSLRootHelper::TestResidual
int TestResidual(double f, double epsAbs)
Definition
GSLRootHelper.cxx:52
ROOT::Math::GSLRootHelper::TestDelta
int TestDelta(double x1, double x0, double epsAbs, double epsRel)
Definition
GSLRootHelper.cxx:47
ROOT::Math
Definition
HFitInterface.h:32
ROOT
Definition
EExecutionPolicy.hxx:4
math
mathmore
src
GSLRootHelper.cxx
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1