00001 #ifndef _NR_UTILS_H_
00002 #define _NR_UTILS_H_
00003
00004 #define SIGN(a,b) ((b) >= 0.0 ? fabs(a) : -fabs(a))
00005
00006 int sort(unsigned long n, float *arr);
00007 int indexx(unsigned long n, float *arr, unsigned long *indx);
00008 float *vector(long nl, long nh, int *status);
00009 int *ivector(long nl, long nh, int *status);
00010 unsigned long *lvector(long nl, long nh, int *status);
00011 void free_vector(float *v, long nl, long nh);
00012 void free_ivector(int *v, long nl, long nh);
00013 void free_lvector(unsigned long *v, long nl, long nh);
00014 #endif