OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
nrutil.c File Reference
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
Include dependency graph for nrutil.c:

Go to the source code of this file.

Macros

#define NR_END   1
 
#define FREE_ARG   char*
 

Functions

void nrerror (char error_text[])
 
float * vector (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 ** matrix (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_vector (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_matrix (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)
 

Macro Definition Documentation

◆ FREE_ARG

#define FREE_ARG   char*

Definition at line 5 of file nrutil.c.

◆ NR_END

#define NR_END   1

Definition at line 4 of file nrutil.c.

Function Documentation

◆ convert_matrix()

float** convert_matrix ( float *  a,
long  nrl,
long  nrh,
long  ncl,
long  nch 
)

Definition at line 149 of file nrutil.c.

◆ cvector()

unsigned char* cvector ( long  nl,
long  nh 
)

Definition at line 33 of file nrutil.c.

◆ dmatrix()

double** dmatrix ( long  nrl,
long  nrh,
long  ncl,
long  nch 
)

Definition at line 83 of file nrutil.c.

◆ dvector()

double* dvector ( long  nl,
long  nh 
)

Definition at line 51 of file nrutil.c.

◆ f3tensor()

float*** f3tensor ( long  nrl,
long  nrh,
long  ncl,
long  nch,
long  ndl,
long  ndh 
)

Definition at line 170 of file nrutil.c.

◆ free_convert_matrix()

void free_convert_matrix ( float **  b,
long  nrl,
long  nrh,
long  ncl,
long  nch 
)

Definition at line 252 of file nrutil.c.

◆ free_cvector()

void free_cvector ( unsigned char *  v,
long  nl,
long  nh 
)

Definition at line 214 of file nrutil.c.

◆ free_dmatrix()

void free_dmatrix ( double **  m,
long  nrl,
long  nrh,
long  ncl,
long  nch 
)

Definition at line 235 of file nrutil.c.

◆ free_dvector()

void free_dvector ( double *  v,
long  nl,
long  nh 
)

Definition at line 224 of file nrutil.c.

◆ free_f3tensor()

void free_f3tensor ( float ***  t,
long  nrl,
long  nrh,
long  ncl,
long  nch,
long  ndl,
long  ndh 
)

Definition at line 257 of file nrutil.c.

◆ free_imatrix()

void free_imatrix ( int **  m,
long  nrl,
long  nrh,
long  ncl,
long  nch 
)

Definition at line 241 of file nrutil.c.

◆ free_ivector()

void free_ivector ( int *  v,
long  nl,
long  nh 
)

Definition at line 209 of file nrutil.c.

◆ free_lvector()

void free_lvector ( unsigned long *  v,
long  nl,
long  nh 
)

Definition at line 219 of file nrutil.c.

◆ free_matrix()

void free_matrix ( float **  m,
long  nrl,
long  nrh,
long  ncl,
long  nch 
)

Definition at line 229 of file nrutil.c.

◆ free_submatrix()

void free_submatrix ( float **  b,
long  nrl,
long  nrh,
long  ncl,
long  nch 
)

Definition at line 247 of file nrutil.c.

◆ free_vector()

void free_vector ( float *  v,
long  nl,
long  nh 
)

Definition at line 204 of file nrutil.c.

◆ imatrix()

int** imatrix ( long  nrl,
long  nrh,
long  ncl,
long  nch 
)

Definition at line 106 of file nrutil.c.

◆ ivector()

int* ivector ( long  nl,
long  nh 
)

Definition at line 24 of file nrutil.c.

◆ lvector()

unsigned long* lvector ( long  nl,
long  nh 
)

Definition at line 42 of file nrutil.c.

◆ matrix()

float** matrix ( long  nrl,
long  nrh,
long  ncl,
long  nch 
)

Definition at line 60 of file nrutil.c.

◆ nrerror()

void nrerror ( char  error_text[])

Definition at line 7 of file nrutil.c.

◆ submatrix()

float** submatrix ( float **  a,
long  oldrl,
long  oldrh,
long  oldcl,
long  oldch,
long  newrl,
long  newcl 
)

Definition at line 130 of file nrutil.c.

◆ vector()

float* vector ( long  nl,
long  nh 
)

Definition at line 15 of file nrutil.c.