5 #define SQR(a) ((sqrarg=(a)) == 0.0 ? 0.0 : sqrarg*sqrarg) 8 #define DSQR(a) ((dsqrarg=(a)) == 0.0 ? 0.0 : dsqrarg*dsqrarg) 11 #define DMAX(a,b) (dmaxarg1=(a),dmaxarg2=(b),(dmaxarg1) > (dmaxarg2) ?\ 12 (dmaxarg1) : (dmaxarg2)) 15 #define DMIN(a,b) (dminarg1=(a),dminarg2=(b),(dminarg1) < (dminarg2) ?\ 16 (dminarg1) : (dminarg2)) 19 #define FMAX(a,b) (maxarg1=(a),maxarg2=(b),(maxarg1) > (maxarg2) ?\ 20 (maxarg1) : (maxarg2)) 23 #define FMIN(a,b) (minarg1=(a),minarg2=(b),(minarg1) < (minarg2) ?\ 24 (minarg1) : (minarg2)) 27 #define LMAX(a,b) (lmaxarg1=(a),lmaxarg2=(b),(lmaxarg1) > (lmaxarg2) ?\ 28 (lmaxarg1) : (lmaxarg2)) 31 #define LMIN(a,b) (lminarg1=(a),lminarg2=(b),(lminarg1) < (lminarg2) ?\ 32 (lminarg1) : (lminarg2)) 35 #define IMAX(a,b) (imaxarg1=(a),imaxarg2=(b),(imaxarg1) > (imaxarg2) ?\ 36 (imaxarg1) : (imaxarg2)) 39 #define IMIN(a,b) (iminarg1=(a),iminarg2=(b),(iminarg1) < (iminarg2) ?\ 40 (iminarg1) : (iminarg2)) 42 #define SIGN(a,b) ((b) >= 0.0 ? fabs(a) : -fabs(a)) 44 #if defined(__STDC__) || defined(ANSI) || defined(NRANSI) 46 void nrerror(
char error_text[]);
47 float *
vector(
long nl,
long nh);
49 unsigned char *
cvector(
long nl,
long nh);
50 unsigned long *
lvector(
long nl,
long nh);
51 double *
dvector(
long nl,
long nh);
52 float **
matrix(
long nrl,
long nrh,
long ncl,
long nch);
53 double **
dmatrix(
long nrl,
long nrh,
long ncl,
long nch);
54 int **
imatrix(
long nrl,
long nrh,
long ncl,
long nch);
55 float **
submatrix(
float **a,
long oldrl,
long oldrh,
long oldcl,
long oldch,
56 long newrl,
long newcl);
57 float **
convert_matrix(
float *a,
long nrl,
long nrh,
long ncl,
long nch);
58 float ***
f3tensor(
long nrl,
long nrh,
long ncl,
long nch,
long ndl,
long ndh);
64 void free_matrix(
float **m,
long nrl,
long nrh,
long ncl,
long nch);
65 void free_dmatrix(
double **m,
long nrl,
long nrh,
long ncl,
long nch);
66 void free_imatrix(
int **m,
long nrl,
long nrh,
long ncl,
long nch);
67 void free_submatrix(
float **b,
long nrl,
long nrh,
long ncl,
long nch);
69 void free_f3tensor(
float ***t,
long nrl,
long nrh,
long ncl,
long nch,
float ** convert_matrix()
unsigned char * cvector()
unsigned long * lvector()
void free_convert_matrix()