(file) Return to nrutil.h CVS log (file) (dir) Up to [Development] / JSOC / proj / limbfit / apps

File: [Development] / JSOC / proj / limbfit / apps / nrutil.h (download)
Revision: 1.1, Tue Sep 21 23:06:38 2010 UTC (12 years, 6 months ago) by scholl
Branch: MAIN
CVS Tags: Ver_LATEST, Ver_9-5, Ver_9-41, Ver_9-4, Ver_9-3, Ver_9-2, Ver_9-1, Ver_9-0, Ver_8-8, Ver_8-7, Ver_8-6, Ver_8-5, Ver_8-4, Ver_8-3, Ver_8-2, Ver_8-12, Ver_8-11, Ver_8-10, Ver_8-1, Ver_8-0, Ver_7-1, Ver_7-0, Ver_6-4, Ver_6-3, Ver_6-2, Ver_6-1, Ver_6-0, Ver_5-14, Ver_5-13, Ver_5-12, Ver_5-11, HEAD
1st ready version

#ifndef _NR_UTILS_H_
#define _NR_UTILS_H_

#define SIGN(a,b) ((b) >= 0.0 ? fabs(a) : -fabs(a))

int sort(unsigned long n, float *arr);
int indexx(unsigned long n, float *arr, unsigned long *indx);
float *vector(long nl, long nh, int *status);
int *ivector(long nl, long nh, int *status);
unsigned long *lvector(long nl, long nh, int *status);
void free_vector(float *v, long nl, long nh);
void free_ivector(int *v, long nl, long nh);
void free_lvector(unsigned long *v, long nl, long nh);
#endif /* _NR_UTILS_H_ */

Karen Tian
Powered by
ViewCVS 0.9.4