TBCI Numerical high perf. C++ Library  2.8.0
my_nrlib.cc
Go to the documentation of this file.
1 
10 /* Changed 13/6/97 by AMB */
11 // explicit instantiation of templates
12 /* $Id: my_nrlib.cc,v 1.5.2.3 2019/05/28 11:13:02 garloff Exp $ */
13 
14 #ifndef NUM
15 # define NUM double
16 #endif
17 
18 #ifdef PRAGMA_I
19 //# pragma implementation "my_nr.h"
20 #endif
21 #include "tbci/my_nr.h"
22 
23 //NAMESPACE_TBCI
24 
25 #define T NUM
26 #include "my_nr_inst.h"
27 
28 #if 0
29 #define TEMPLATE template
30 
31 //template class minimum<NUM>;
32 
33 TEMPLATE int basis_trafo <NUM> (long int value, long int basis, Vector<NUM>& index);
34 
35 TEMPLATE NUM partial_del <NUM> (NUM (*func)(const Vector<NUM>&, const Vector<NUM>&),
36  const Vector<NUM>& x, const Vector<NUM>& p,
37  int mu, NUM h, NUM& err);
38 
39 TEMPLATE NUM chisq <NUM> (Vector<NUM>& data, Vector<NUM>& func, Vector<NUM>& sig);
40 
41 TEMPLATE NUM chisquare <NUM> (NUM (*func)(const Vector<NUM>&, const Vector<NUM>&),
44 
45 /*TEMPLATE Vector<NUM> grid_mins <NUM> (NUM (*func)(Vector<NUM>&, Vector<NUM>&),
46  Vector<NUM>& x, Vector<NUM>& y,
47  Vector<NUM>& sigma, Vector<NUM>& pmin, Vector<NUM>& pmax, int res, char v, int anzmin, nslist<minimum<NUM>,NUM>& minima);
48 */
49 
50 TEMPLATE TVector<NUM> grid_min <NUM> (NUM (*func)(const Vector<NUM>&, const Vector<NUM>&),
53  long int res, int max_it, char v);
54 
55 TEMPLATE NUM lev_mar <NUM> (Vector<NUM>& x, Vector<NUM>& y, Vector<NUM>& sig,
56  Vector<NUM>& param, Vector<NUM>& plow, Vector<NUM>& phigh,
57  NUM (*func)(const Vector<NUM>&, const Vector<NUM>&),
58  Vector<NUM> lambda, Vector<NUM>& lscale, NUM tol,
59  int iter, char ver);
60 
61 TEMPLATE void hpsort <NUM> (Matrix<NUM>& x, int pos);
62 
63 //unsigned long long fac (const char);
64 
65 //long double ldgamma (const double);
66 //long double fact (const double);
67 
68 #endif /* 0 */
69 
70 //NAMESPACE_END
const Vector< T > const Vector< T > const Vector< T > int mu
Definition: LM_fit.h:97
const Vector< T > const Vector< T > & x
Definition: LM_fit.h:97
const Vector< T > const Vector< T > const Vector< T > & p
Definition: LM_fit.h:97
const Vector< T > const Vector< T > const Vector< T > int T h
Definition: LM_fit.h:97
const Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > & sigma
&lt; calculates function values of func at position x with params param and return chisq with given y va...
Definition: LM_fit.h:176
long int basis
Definition: LM_fit.h:66
const Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > & pmin
Definition: LM_fit.h:199
long int Vector< T > & index
Definition: LM_fit.h:69
#define NUM
Definition: my_nrlib.cc:15
#define TEMPLATE
Definition: cplxinst.cc:22
const Vector< T > Vector< T > & param
Definition: LM_fit.h:172
const Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > & sig
Definition: LM_fit.h:199
Definition: bvector.h:49
const Vector< T > const Vector< T > const Vector< T > int T T & err
Definition: LM_fit.h:102
Temporary Base Class Idiom: Class TVector is used for temporary variables.
Definition: bvector.h:52
const Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > & lambda
Definition: LM_fit.h:199
const Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > & pmax
Definition: LM_fit.h:199
Definition: bvector.h:54
const Vector< T > Vector< T > Vector< T > Vector< T > & y
Definition: LM_fit.h:172
const Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > long int res
Definition: LM_fit.h:199
const Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > long int int char v
&lt; find minimun of func on grid with resolution res
Definition: LM_fit.h:205
const Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > long int int max_it
Definition: LM_fit.h:199