source: Sophya/trunk/SigPredictor/numrecipes.h@ 1190

Last change on this file since 1190 was 1148, checked in by ansari, 25 years ago

mise a jour

File size: 1.9 KB
Line 
1 // Dominique YVON, CEA/DAPNIA/SPP 02/2000
2
3#ifndef Numrecipes_H_
4#define Numrecipes_H_
5
6#include <math.h>
7#ifdef __MWERKS__
8 #include "unixmac.h"
9#endif
10
11
12/* Cree pour encapsuler les fonctions utiles de la Numerical Recipes
13 Actuellement encapsule: nrtil.h, hunt.c, polin2.c polint.c
14*/
15
16class NumRecipes{
17public:
18 NumRecipes() {}
19 ~NumRecipes() {}
20 void nrerror(char error_text[]);
21 float *vector(long nl, long nh);
22 int *ivector(long nl, long nh);
23 unsigned char *cvector(long nl, long nh);
24 unsigned long *lvector(long nl, long nh);
25 double *dvector(long nl, long nh);
26 float **matrix(long nrl, long nrh, long ncl, long nch);
27 double **dmatrix(long nrl, long nrh, long ncl, long nch);
28 int **imatrix(long nrl, long nrh, long ncl, long nch);
29 float **submatrix(float **a, long oldrl, long oldrh, long oldcl, long oldch,
30 long newrl, long newcl);
31 float **convert_matrix(float *a, long nrl, long nrh, long ncl, long nch);
32 float ***f3tensor(long nrl, long nrh, long ncl, long nch, long ndl, long ndh);
33 void free_vector(float *v, long nl, long nh);
34 void free_ivector(int *v, long nl, long nh);
35 void free_cvector(unsigned char *v, long nl, long nh);
36 void free_lvector(unsigned long *v, long nl, long nh);
37 void free_dvector(double *v, long nl, long nh);
38 void free_matrix(float **m, long nrl, long nrh, long ncl, long nch);
39 void free_dmatrix(double **m, long nrl, long nrh, long ncl, long nch);
40 void free_imatrix(int **m, long nrl, long nrh, long ncl, long nch);
41 void free_submatrix(float **b, long nrl, long nrh, long ncl, long nch);
42 void free_convert_matrix(float **b, long nrl, long nrh, long ncl, long nch);
43 void free_f3tensor(float ***t, long nrl, long nrh, long ncl, long nch,
44 long ndl, long ndh);
45
46 void hunt(float xx[], unsigned long n, float x, unsigned long *jlo);
47 void polin2(float *xx,float *yy, float** yaa,int,int,float,float,float*,float*);
48 void polint(float xa[], float ya[], int n, float x, float *y, float *dy);
49 };
50
51 #endif
Note: See TracBrowser for help on using the repository browser.