TBCI Numerical high perf. C++ Library 2.8.0
my_nrlib.cc
Go to the documentation of this file.
1
9
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
33TEMPLATE int basis_trafo <NUM> (long int value, long int basis, Vector<NUM>& index);
34
35TEMPLATE 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
39TEMPLATE NUM chisq <NUM> (Vector<NUM>& data, Vector<NUM>& func, Vector<NUM>& sig);
40
41TEMPLATE NUM chisquare <NUM> (NUM (*func)(const Vector<NUM>&, const Vector<NUM>&),
42 Vector<NUM>& param, Vector<NUM>& x,
43 Vector<NUM>& y, Vector<NUM>& sigma);
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
50TEMPLATE TVector<NUM> grid_min <NUM> (NUM (*func)(const Vector<NUM>&, const Vector<NUM>&),
52 Vector<NUM>& pmin, Vector<NUM>& pmax, Vector<NUM>& lambda,
53 long int res, int max_it, char v);
54
55TEMPLATE 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
61TEMPLATE 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:99
long int basis
Definition LM_fit.h:66
const Vector< T > const Vector< T > const Vector< T > & p
Definition LM_fit.h:98
long int Vector< T > & index
Definition LM_fit.h:69
const Vector< T > const Vector< T > & x
Definition LM_fit.h:97
const Vector< T > const Vector< T > const Vector< T > int T h
Definition LM_fit.h:99
const Vector< T > const Vector< T > const Vector< T > int T T & err
Definition LM_fit.h:102
doublereal y
Definition TOMS_707.C:27
#define NUM
Definition bdmatlib.cc:9
Temporary Base Class Idiom: Class TVector is used for temporary variables.
Definition vector.h:73
#define TEMPLATE
Definition cplxinst.cc:22
const unsigned TMatrix< T > * res
int basis_trafo(long int value, long int basis, Vector< T > &index)
Definition my_nr.h:73