Main Page | Files | Data Structures | Functions | Global Variables |

gpiv-utils_alloc.h File Reference

utilities for memory allocation More...

Go to the source code of this file.

Functions

gfloat ** gpiv_matrix (long nr, long nc)
void gpiv_free_matrix (gfloat **m)
gfloat ** gpiv_matrix_index (const long nrl, const long nrh, const long ncl, const long nch)
void gpiv_free_matrix_index (gfloat **m, const long nrl, const long nrh, const long ncl, const long nch)
guchar ** gpiv_ucmatrix (const long nr, const long nc)
void gpiv_free_ucmatrix (guchar **m)
guint8 ** gpiv_matrix_guint8 (const long nr, const long nc)
void gpiv_free_matrix_guint8 (guint8 **m)
guint16 ** gpiv_matrix_guint16 (const long nr, const long nc)
void gpiv_free_matrix_guint16 (guint16 **m)
gint ** gpiv_imatrix_index (const long nrl, const long nrh, const long ncl, const long nch)
void gpiv_free_imatrix_index (gint **m, const long nrl, const long nrh, const long ncl, const long nch)
gint ** gpiv_imatrix (const long nr, const long nc)
void gpiv_free_imatrix (gint **m)
double ** gpiv_double_matrix (const glong nr, const glong nc)
void gpiv_free_double_matrix (double **m)
fftw_real ** gpiv_fftw_real_matrix (glong nr, glong nc)
void gpiv_free_fftw_real_matrix (fftw_real **m)
fftw_complex ** gpiv_fftw_complex_matrix (const long nr, const long nc)
void gpiv_free_fftw_complex_matrix (fftw_complex **m)
gfloat * gpiv_vector (const long nl)
void gpiv_free_vector (gfloat *vector)
gfloat * gpiv_vector_index (const long nl, const long nh)
void gpiv_free_vector_index (gfloat *vector, const long nl, const long nh)
gdouble * gpiv_dvector (const glong nl)
void gpiv_free_dvector (gdouble *vector)
gdouble * gpiv_dvector_index (const long nl, const long nh)
void gpiv_free_dvector_index (gdouble *vector, const long nl, const long nh)
long * gpiv_nulvector (long nl)
void gpiv_free_nulvector (long *vector)
long * gpiv_nulvector_index (const long nl, const long nh)
void gpiv_free_nulvector_index (long *vector, const long nl, const long nh)
unsigned long * gpiv_ulvector (const long nl)
void gpiv_free_ulvector (unsigned long *vector)
unsigned long * gpiv_ulvector_index (const long nl, const long nh)
void gpiv_free_ulvector_index (unsigned long *vector, const long nl, const long nh)
gint * gpiv_ivector (const long nl)
void gpiv_free_ivector (gint *vector)
gint * gpiv_ivector_index (const long nl, const long nh)
void gpiv_free_ivector_index (gint *vector, const long nl, const long nh)
gboolean * gpiv_gbolvector (const glong nl)
void gpiv_free_gbolvector (gboolean *vector)


Detailed Description

utilities for memory allocation

SOURCES: lib/utils_alloc.c

LAST MODIFICATION DATE:

Id

Definition in file gpiv-utils_alloc.h.


Function Documentation

double** gpiv_double_matrix ( const glong  nr,
const glong  nc 
)

Allocates a contiguous 2-dimensional double matrix of nr x nc

Parameters:
[in] nr number of rows
[in] nc number of columns
Returns:
matrix

gdouble* gpiv_dvector ( const glong  nl  ) 

Allocates memory for a 1-dimensional vector of gdouble data

Parameters:
[in] nl vector length
Returns:
vector

gdouble* gpiv_dvector_index ( const long  nl,
const long  nh 
)

Allocates memory for a 1-dimensional vector of double data with subscript range v[nl..nh]

Parameters:
[in] nl lowest index number
[in] nh highest index number
Returns:
vector

fftw_complex** gpiv_fftw_complex_matrix ( const long  nr,
const long  nc 
)

Allocates a contiguous 2-dimensional fftw_complex matrix of nr x nc

Parameters:
[in] nr number of rows
[in] nc number of columns
Returns:
matrix

fftw_real** gpiv_fftw_real_matrix ( glong  nr,
glong  nc 
)

Allocates a contiguous 2-dimensional fftw_real_matrix matrix of nr x nc

Parameters:
[in] nr number of rows
[in] nc number of columns
Returns:
matrix

void gpiv_free_double_matrix ( double **  m  ) 

Frees a double matrix allocated by gpiv_double_matrix()

Parameters:
[in] m matrix
Returns:
void

void gpiv_free_dvector ( gdouble *  vector  ) 

Frees memory for a 1-dimensional vector of double data

Parameters:
[in] vector vector of 1-dimensional gfloat data
Returns:
void

void gpiv_free_dvector_index ( gdouble *  vector,
const long  nl,
const long  nh 
)

Frees memory for a 1-dimensional vector of double data with subscript range v[nrl..nrh][ncl..nch]

Parameters:
[in] vector vector of 1-dimensional gfloat data
[in] nl lowest index number
[in] nh highest index number
Returns:
void

void gpiv_free_fftw_complex_matrix ( fftw_complex **  m  ) 

Frees a fftw_real matrix allocated by gpiv_fftw_complex_matrix()

Parameters:
[in] m matrix
Returns:
void

void gpiv_free_fftw_real_matrix ( fftw_real **  m  ) 

Frees a gdouble matrix allocated by gpiv_fftw_real_matrix_matrix()

Parameters:
[in] m matrix
Returns:
void

void gpiv_free_gbolvector ( gboolean *  vector  ) 

Frees memory for a 1-dimensional vector of gboolean data

Parameters:
[in] vector vector of 1-dimensional boolean data
Returns:
void

void gpiv_free_imatrix ( gint **  m  ) 

Frees memory for 2-dimensional array of integer data unappreciated, use gpiv_free_imatrix_index instead

Parameters:
[in] m matrix
Returns:
void

void gpiv_free_imatrix_index ( gint **  m,
const long  nrl,
const long  nrh,
const long  ncl,
const long  nch 
)

Frees memory for 2-dimensional array of integer data with subscript range v[nrl..nrh][ncl..nch]

Parameters:
[in] m matrix
[in] nrl lowest row index number
[in] nrh highest row index number
[in] ncl lowest column index number
[in] nch highest column index number
Returns:
void

void gpiv_free_ivector ( gint *  vector  ) 

Frees memory for a 1-dimensional vector of integer data

Parameters:
[in] vector vector of 1-dimensional gfloat data
Returns:
void

void gpiv_free_ivector_index ( gint *  vector,
const long  nl,
const long  nh 
)

Frees memory for a 1-dimensional vector of integer data with subscript range v[nrl..nrh][ncl..nch]

Parameters:
[in] vector vector of 1-dimensional gfloat data
[in] nl lowest index number
[in] nh highest index number
Returns:
void

void gpiv_free_matrix ( gfloat **  m  ) 

Frees memory for 2-dimensional array of gfloat data

Parameters:
[in] m matrix
Returns:
void

void gpiv_free_matrix_guint16 ( guint16 **  m  ) 

Frees a guint16 matrix allocated by gpiv_matrix_guint16

Parameters:
[in] m matrix
Returns:
void

void gpiv_free_matrix_guint8 ( guint8 **  m  ) 

Frees a guint8 matrix allocated by gpiv_matrix_guint8

Parameters:
[in] m matrix
Returns:
void

void gpiv_free_matrix_index ( gfloat **  m,
const long  nrl,
const long  nrh,
const long  ncl,
const long  nch 
)

Frees memory for 2-dimensional array of gfloat data with subscript range v[nrl..nrh][ncl..nch]

Parameters:
[in] m matrix
[in] nrl lowest row index number
[in] nrh highest row index number
[in] ncl lowest column index number
[in] nch highest column index number
Returns:
void

void gpiv_free_nulvector ( long *  vector  ) 

Frees memory for a 1-dimensional vector of long data

Parameters:
[in] vector vector of 1-dimensional gfloat data
Returns:
void

void gpiv_free_nulvector_index ( long *  vector,
const long  nl,
const long  nh 
)

Frees memory for a 1-dimensional vector of long data with subscript range v[nrl..nrh][ncl..nch]

Parameters:
[in] vector vector of 1-dimensional gfloat data
[in] nl lowest index number
[in] nh highest index number
Returns:
void

void gpiv_free_ucmatrix ( guchar **  m  ) 

Frees memory for 2-dimensional array of guchar data

Parameters:
[in] m matrix
Returns:
void

void gpiv_free_ulvector ( unsigned long *  vector  ) 

Frees memory for a 1-dimensional vector of unsigned long data

Parameters:
[in] vector vector of 1-dimensional gfloat data
Returns:
void

void gpiv_free_ulvector_index ( unsigned long *  vector,
const long  nl,
const long  nh 
)

Frees memory for a 1-dimensional vector of unsigned long data with subscript range v[nrl..nrh][ncl..nch]

Parameters:
[in] vector vector of 1-dimensional gfloat data
[in] nl lowest index number
[in] nh highest index number
Returns:
void

void gpiv_free_vector ( gfloat *  vector  ) 

Frees memory for a 1-dimensional vector of gfloat data

Parameters:
[in] vector vector of 1-dimensional gfloat data
Returns:
void

void gpiv_free_vector_index ( gfloat *  vector,
const long  nl,
const long  nh 
)

Frees memory for a 1-dimensional vector of gfloat data with subscript range v[nrl..nrh][ncl..nch]

Parameters:
[in] vector vector of 1-dimensional gfloat data
[in] nl lowest index number
[in] nh highest index number
Returns:
void

gboolean* gpiv_gbolvector ( const glong  nl  ) 

Allocates memory for a 1-dimensional vector of gboolean data

Parameters:
[in] nl vector length
Returns:
vector

gint** gpiv_imatrix ( const long  nr,
const long  nc 
)

Allocates memory for 2-dimensional matrix of integer data depreciated, use gpiv_imatrix_index instead

Parameters:
[in] nr number of rows
[in] nc number of columns
Returns:
matrix

gint** gpiv_imatrix_index ( const long  nrl,
const long  nrh,
const long  ncl,
const long  nch 
)

Allocates memory for 2-dimensional matrix of integer data with subscript range v[nrl..nrh][ncl..nch]

Parameters:
[in] nrl lowest row index number
[in] nrh highest row index number
[in] ncl lowest column index number
[in] nch highest column index number
Returns:
matrix

gint* gpiv_ivector ( const long  nl  ) 

Allocates memory for a 1-dimensional vector of integer data

Parameters:
[in] nl vector length
Returns:
vector

gint* gpiv_ivector_index ( const long  nl,
const long  nh 
)

Allocates memory for a 1-dimensional vector of integer data with subscript range v[nl..nh]

Parameters:
[in] nl lowest index number
[in] nh highest index number
Returns:
vector

gfloat** gpiv_matrix ( long  nr,
long  nc 
)

Allocates memory for 2-dimensional matrix of gfloat data

Parameters:
[in] nr number of rows
[in] nc number of columns
Returns:
matrix

guint16** gpiv_matrix_guint16 ( const long  nr,
const long  nc 
)

Allocates a guint16 matrix with subscript range m[0..nr][0..nc]

Parameters:
[in] nr number of rows
[in] nc number of columns
Returns:
matrix

guint8** gpiv_matrix_guint8 ( const long  nr,
const long  nc 
)

Allocates a guint8 matrix with subscript range m[0..nr][0..nc]

Parameters:
[in] nr number of rows
[in] nc number of columns
Returns:
matrix

gfloat** gpiv_matrix_index ( const long  nrl,
const long  nrh,
const long  ncl,
const long  nch 
)

Allocates memory for 2-dimensional matrix of gfloat data with subscript range v[nrl..nrh][ncl..nch]

Parameters:
[in] nrl lowest row index number
[in] nrh highest row index number
[in] ncl lowest column index number
[in] nch highest column index number
Returns:
2-dimensional array

long* gpiv_nulvector ( long  nl  ) 

Allocates memory for a 1-dimensional vector of long data

Parameters:
[in] nl vector length
Returns:
vector

long* gpiv_nulvector_index ( const long  nl,
const long  nh 
)

Allocates memory for a 1-dimensional vector of long data with subscript range v[nl..nh]

Parameters:
[in] nl lowest index number
[in] nh highest index number
Returns:
vector

guchar** gpiv_ucmatrix ( const long  nr,
const long  nc 
)

Allocates memory for 2-dimensional matrix of guchar data

Parameters:
[in] nr row index
[in] nc column index
Returns:
matrix

unsigned long* gpiv_ulvector ( const long  nl  ) 

Allocates memory for a 1-dimensional vector of unsigned long data

Parameters:
[in] nl vector length
Returns:
vector

unsigned long* gpiv_ulvector_index ( const long  nl,
const long  nh 
)

Allocates memory for a 1-dimensional vector of unsigned long data with subscript range v[nl..nh]

Parameters:
[in] nl lowest index number
[in] nh highest index number
Returns:
vector

gfloat* gpiv_vector ( const long  nl  ) 

Allocates memory for a 1-dimensional vector of gfloat data

Parameters:
[in] nl vector length
Returns:
vector

gfloat* gpiv_vector_index ( const long  nl,
const long  nh 
)

Allocates memory for a 1-dimensional vector of gfloat data with subscript range v[nl..nh]

Parameters:
[in] nl lowest index number
[in] nh highest index number
Returns:
vector


Generated on Tue Nov 20 19:46:20 2007 for Libgpiv by doxygen 1.5.1