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

include/gpiv/gpiv-utils_alloc.h File Reference

utilities for memory allocation More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

gfloat ** gpiv_matrix (long nr, long nc)
 Allocates memory for 2-dimensional matrix of gfloat data.
void gpiv_free_matrix (gfloat **m)
 Frees memory for 2-dimensional array of gfloat data.
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.
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.
guchar ** gpiv_ucmatrix (const long nr, const long nc)
 Allocates memory for 2-dimensional matrix of guchar data.
void gpiv_free_ucmatrix (guchar **m)
 Frees memory for 2-dimensional array of guchar data.
guint8 ** gpiv_matrix_guint8 (const long nr, const long nc)
 Allocates a guint8 matrix with subscript range m[0.
void gpiv_free_matrix_guint8 (guint8 **m)
 Frees a guint8 matrix allocated by gpiv_matrix_guint8.
guint16 ** gpiv_matrix_guint16 (const long nr, const long nc)
 Allocates a guint16 matrix with subscript range m[0.
void gpiv_free_matrix_guint16 (guint16 **m)
 Frees a guint16 matrix allocated by gpiv_matrix_guint16.
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.
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.
gint ** gpiv_imatrix (const long nr, const long nc)
 Allocates memory for 2-dimensional matrix of integer data depreciated, use gpiv_imatrix_index instead.
void gpiv_free_imatrix (gint **m)
 Frees memory for 2-dimensional array of integer data unappreciated, use gpiv_free_imatrix_index instead.
double ** gpiv_double_matrix (const glong nr, const glong nc)
 Allocates a contiguous 2-dimensional double matrix of nr x nc.
void gpiv_free_double_matrix (double **m)
 Frees a double matrix allocated by gpiv_double_matrix().
fftw_real ** gpiv_fftw_real_matrix (glong nr, glong nc)
 Allocates a contiguous 2-dimensional fftw_real_matrix matrix of nr x nc.
void gpiv_free_fftw_real_matrix (fftw_real **m)
 Frees a gdouble matrix allocated by gpiv_fftw_real_matrix_matrix().
fftw_complex ** gpiv_fftw_complex_matrix (const long nr, const long nc)
 Allocates a contiguous 2-dimensional fftw_complex matrix of nr x nc.
void gpiv_free_fftw_complex_matrix (fftw_complex **m)
 Frees a fftw_real matrix allocated by gpiv_fftw_complex_matrix().
gfloat * gpiv_vector (const long nl)
 Allocates memory for a 1-dimensional vector of gfloat data.
void gpiv_free_vector (gfloat *vector)
 Frees memory for a 1-dimensional vector of gfloat data.
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.
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.
gdouble * gpiv_dvector (const glong nl)
 Allocates memory for a 1-dimensional vector of gdouble data.
void gpiv_free_dvector (gdouble *vector)
 Frees memory for a 1-dimensional vector of double data.
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.
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.
long * gpiv_nulvector (long nl)
 Allocates memory for a 1-dimensional vector of long data.
void gpiv_free_nulvector (long *vector)
 Frees memory for a 1-dimensional vector of long data.
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.
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.
unsigned long * gpiv_ulvector (const long nl)
 Allocates memory for a 1-dimensional vector of unsigned long data.
void gpiv_free_ulvector (unsigned long *vector)
 Frees memory for a 1-dimensional vector of unsigned long data.
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.
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.
gint * gpiv_ivector (const long nl)
 Allocates memory for a 1-dimensional vector of integer data.
void gpiv_free_ivector (gint *vector)
 Frees memory for a 1-dimensional vector of integer data.
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.
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.
gboolean * gpiv_gbolvector (const glong nl)
 Allocates memory for a 1-dimensional vector of gboolean data.
void gpiv_free_gbolvector (gboolean *vector)
 Frees memory for a 1-dimensional vector of gboolean data.


Detailed Description

utilities for memory allocation

SOURCES: lib/utils_alloc.c

LAST MODIFICATION DATE:

Id
gpiv-utils_alloc.h,v 1.1 2007-11-23 16:12:18 gerber Exp

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 Jun 9 08:20:13 2009 for libgpiv-0.6.1 by doxygen 1.5.9