nrutil.h
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: nrutil.h,v $
- * PRODUCTION Revision 1000.0 2003/10/29 19:41:52 gouriano
- * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.1
- * PRODUCTION
- * ===========================================================================
- */
- #ifndef _NR_UTILS_H_
- #define _NR_UTILS_H_
- extern "C" {
- void nrerror(char error_text[]);
- float *fvector(long nl, long nh);
- int *ivector(long nl, long nh);
- unsigned char *cvector(long nl, long nh);
- unsigned long *lvector(long nl, long nh);
- double *dvector(long nl, long nh);
- float **fmatrix(long nrl, long nrh, long ncl, long nch);
- double **dmatrix(long nrl, long nrh, long ncl, long nch);
- int **imatrix(long nrl, long nrh, long ncl, long nch);
- float **submatrix(float **a, long oldrl, long oldrh, long oldcl, long oldch,
- long newrl, long newcl);
- float **convert_matrix(float *a, long nrl, long nrh, long ncl, long nch);
- float ***f3tensor(long nrl, long nrh, long ncl, long nch, long ndl, long ndh);
- void free_fvector(float *v, long nl, long nh);
- void free_ivector(int *v, long nl, long nh);
- void free_cvector(unsigned char *v, long nl, long nh);
- void free_lvector(unsigned long *v, long nl, long nh);
- void free_dvector(double *v, long nl, long nh);
- void free_fmatrix(float **m, long nrl, long nrh, long ncl, long nch);
- void free_dmatrix(double **m, long nrl, long nrh, long ncl, long nch);
- void free_imatrix(int **m, long nrl, long nrh, long ncl, long nch);
- void free_submatrix(float **b, long nrl, long nrh, long ncl, long nch);
- void free_convert_matrix(float **b, long nrl, long nrh, long ncl, long nch);
- void free_f3tensor(float ***t, long nrl, long nrh, long ncl, long nch,
- long ndl, long ndh);
- }
- #endif /* _NR_UTILS_H_ */