Defines | Functions

nrutil.h File Reference

Go to the source code of this file.

Defines

#define SQR(a)   ((sqrarg=(a)) == 0.0 ? 0.0 : sqrarg*sqrarg)
#define DSQR(a)   ((dsqrarg=(a)) == 0.0 ? 0.0 : dsqrarg*dsqrarg)
#define DMAX(a, b)
#define DMIN(a, b)
#define FMAX(a, b)
#define FMIN(a, b)
#define LMAX(a, b)
#define LMIN(a, b)
#define IMAX(a, b)
#define IMIN(a, b)
#define SIGN(a, b)   ((b) >= 0.0 ? fabs(a) : -fabs(a))

Functions

void nrerror ()
float * nrvector ()
float ** matrix ()
float ** submatrix ()
float ** convert_matrix ()
float *** f3tensor ()
double * dvector ()
double ** dmatrix ()
int * ivector ()
int ** imatrix ()
unsigned char * cvector ()
unsigned long * lvector ()
void free_nrvector ()
void free_dvector ()
void free_ivector ()
void free_cvector ()
void free_lvector ()
void free_matrix ()
void free_submatrix ()
void free_convert_matrix ()
void free_dmatrix ()
void free_imatrix ()
void free_f3tensor ()

Define Documentation

#define DMAX (   a,
  b 
)
Value:
(dmaxarg1=(a),dmaxarg2=(b),(dmaxarg1) > (dmaxarg2) ?\
        (dmaxarg1) : (dmaxarg2))
#define DMIN (   a,
  b 
)
Value:
(dminarg1=(a),dminarg2=(b),(dminarg1) < (dminarg2) ?\
        (dminarg1) : (dminarg2))
#define DSQR (   a  )     ((dsqrarg=(a)) == 0.0 ? 0.0 : dsqrarg*dsqrarg)
#define FMAX (   a,
  b 
)
Value:
(maxarg1=(a),maxarg2=(b),(maxarg1) > (maxarg2) ?\
        (maxarg1) : (maxarg2))

Referenced by mnbrak(), and mnbrakd().

#define FMIN (   a,
  b 
)
Value:
(minarg1=(a),minarg2=(b),(minarg1) < (minarg2) ?\
        (minarg1) : (minarg2))
#define IMAX (   a,
  b 
)
Value:
(imaxarg1=(a),imaxarg2=(b),(imaxarg1) > (imaxarg2) ?\
        (imaxarg1) : (imaxarg2))
#define IMIN (   a,
  b 
)
Value:
(iminarg1=(a),iminarg2=(b),(iminarg1) < (iminarg2) ?\
        (iminarg1) : (iminarg2))
#define LMAX (   a,
  b 
)
Value:
(lmaxarg1=(a),lmaxarg2=(b),(lmaxarg1) > (lmaxarg2) ?\
        (lmaxarg1) : (lmaxarg2))
#define LMIN (   a,
  b 
)
Value:
(lminarg1=(a),lminarg2=(b),(lminarg1) < (lminarg2) ?\
        (lminarg1) : (lminarg2))
#define SIGN (   a,
  b 
)    ((b) >= 0.0 ? fabs(a) : -fabs(a))
#define SQR (   a  )     ((sqrarg=(a)) == 0.0 ? 0.0 : sqrarg*sqrarg)

Referenced by powell().


Function Documentation

float** convert_matrix (  ) 
unsigned char* cvector (  ) 
double** dmatrix (  ) 
double* dvector (  ) 
float*** f3tensor (  ) 
void free_convert_matrix (  ) 
void free_cvector (  ) 
void free_dmatrix (  ) 
void free_dvector (  ) 
void free_f3tensor (  ) 
void free_imatrix (  ) 
void free_ivector (  ) 
void free_lvector (  ) 
void free_matrix (  ) 
void free_nrvector (  ) 
void free_submatrix (  ) 
int** imatrix (  ) 
int* ivector (  ) 
unsigned long* lvector (  ) 
float** matrix (  ) 
void nrerror (  ) 
float* nrvector (  ) 
float** submatrix (  )