Main Page | Files | Data Structures | Functions | Global Variables |
gpiv-utils_alloc.h
Go to the documentation of this file.
1/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 c-style: "K&R" -*- */
2
3/*
4 libgpiv - library for Particle Image Velocimetry
5
6 Copyright (C) 2007, 2008 Gerber van der Graaf
7
8 This file is part of libgpiv.
9
10 Libgpiv is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2, or (at your option)
13 any later version.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software Foundation,
22 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24
25
26
27-------------------------------------------------------------------------------
28LIBRARY: libgpiv:
29EXTERNAL FUNCTIONS:
30 check_img_exist
31
32 gpiv_scan_iph,
33 gpiv_scan_iph_nl,
34 gpiv_fscan_iph,
35 gpiv_scan_cph,
36 gpiv_fscan_cph,
37 gpiv_scan_fph,
38 gpiv_fscan_fph,
39 gpiv_scan_sph,
40 gpiv_fscan_sph,
41 gpiv_sort_3,
42
43
44 gpiv_matrix,
45 gpiv_free_matrix
46 gpiv_matrix_index
47 gpiv_free_matrix_index
48 gpiv_ucmatrix,
49 gpiv_free_ucmatrix
50 gpiv_matrix_guint16
51 gpiv_free_matrix_guint16
52 gpiv_imatrix,
53 gpiv_free_imatrix
54 gpiv_double_matrix
55 gpiv_free_double_matrix
56 gpiv_fftw_real_matrix
57 gpiv_free_fftw_real_matrix
58
59 gpiv_vector,
60 gpiv_free_vector,
61 gpiv_vector_index,
62 gpiv_free_vector_index,
63
64 gpiv_dvector,
65 gpiv_free_dvector,
66 gpiv_dvector_index,
67 gpiv_free_dvector_index,
68
69 gpiv_nulvector,
70 gpiv_free_nulvector,
71 gpiv_nulvector_index,
72 gpiv_free_nulvector_index,
73
74 gpiv_ulvector,
75 gpiv_free_ulvector,
76 gpiv_ulvector_index,
77 gpiv_free_ulvector_index,
78
79 gpiv_ivector,
80 gpiv_free_ivector,
81 gpiv_ivector_index,
82 gpiv_free_ivector_index
83 gpiv_gbolvector
84 gpiv_free_gbolvector
85
86
87LAST MODIFICATION DATE: $Id: gpiv-utils_alloc.h,v 1.1 2007-11-23 16:12:18 gerber Exp $
88 --------------------------------------------------------------------------- */
98#ifndef __L_UTILS_H__
99#define __L_UTILS_H__
100
108gfloat **
109gpiv_matrix (long nr,
110 long nc
111 );
112
113
114
121void
123 );
124
125
126
137gfloat **
138gpiv_matrix_index (const long nrl,
139 const long nrh,
140 const long ncl,
141 const long nch
142 );
143
144
145
157void
159 const long nrl,
160 const long nrh,
161 const long ncl,
162 const long nch
163 );
164
165
166
174guchar **
175gpiv_ucmatrix (const long nr,
176 const long nc
177 );
178
179
180
187void
189 );
190
191
192
200guint8 **
201gpiv_matrix_guint8 (const long nr,
202 const long nc
203 );
204
205
206
213void
215 );
216
217
225guint16 **
226gpiv_matrix_guint16 (const long nr,
227 const long nc
228 );
229
230
231
238void
240 );
241
242
243
254gint **
255gpiv_imatrix_index (const long nrl,
256 const long nrh,
257 const long ncl,
258 const long nch
259 );
260
261
262
274void
276 const long nrl,
277 const long nrh,
278 const long ncl,
279 const long nch
280 );
281
282
283
292gint **
293gpiv_imatrix (const long nr,
294 const long nc
295 );
296
297
298
306void
308 );
309
310
311
312double **
321gpiv_double_matrix (const glong nr,
322 const glong nc
323 );
324
325
326
333void
335 );
336
337
338#ifndef USE_FFTW3
347fftw_real **
349 glong nc
350 );
351
352
353
360void
362 );
363
364#endif /* USE_FFTW3 */
365
366
375fftw_complex **
377 const long nc
378 );
379
380
381
388void
390 );
391
392
399gfloat *
400gpiv_vector (const long nl
401 );
402
403
404
411void
412gpiv_free_vector (gfloat *vector
413 );
414
415
416
425gfloat *
426gpiv_vector_index (const long nl,
427 const long nh
428 );
429
430
431
441void
443 const long nl,
444 const long nh
445 );
446
447
448
455gdouble *
456gpiv_dvector (const glong nl
457 );
458
459
460
467void
468gpiv_free_dvector (gdouble *vector
469 );
470
471
472
481gdouble *
482gpiv_dvector_index (const long nl,
483 const long nh
484 );
485
486
487
497void
498gpiv_free_dvector_index (gdouble *vector,
499 const long nl,
500 const long nh
501 );
502
503
504
511long *
513 );
514
515
516
523void
525 );
526
527
528
537long *
538gpiv_nulvector_index (const long nl,
539 const long nh
540 );
541
542
543
553void
555 const long nl,
556 const long nh
557 );
558
559
560
567unsigned long *
568gpiv_ulvector (const long nl
569 );
570
571
572
579void
580gpiv_free_ulvector (unsigned long *vector
581 );
582
583
584
593unsigned long *
594gpiv_ulvector_index (const long nl,
595 const long nh
596 );
597
598
599
609void
610gpiv_free_ulvector_index (unsigned long *vector,
611 const long nl,
612 const long nh
613 );
614
615
616
623gint *
624gpiv_ivector (const long nl
625 );
626
627
628
635void
636gpiv_free_ivector (gint *vector
637 );
638
639
640
649gint *
650gpiv_ivector_index (const long nl,
651 const long nh
652 );
653
654
655
665void
667 const long nl,
668 const long nh
669 );
670
671
672
679gboolean *
680gpiv_gbolvector (const glong nl
681 );
682
683
684
691void
692gpiv_free_gbolvector (gboolean *vector
693 );
694
695
696
697#endif /* __L_UTILS_H__ */
guint16 ** gpiv_matrix_guint16(const long nr, const long nc)
Allocates a guint16 matrix with subscript range m[0..nr][0..nc].
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....
long * gpiv_nulvector(long nl)
Allocates memory for a 1-dimensional vector of long data.
gint ** gpiv_imatrix(const long nr, const long nc)
gfloat * gpiv_vector(const long nl)
Allocates memory for a 1-dimensional vector of gfloat data.
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....
void gpiv_free_dvector(gdouble *vector)
Frees memory for a 1-dimensional vector of double data.
guint8 ** gpiv_matrix_guint8(const long nr, const long nc)
Allocates a guint8 matrix with subscript range m[0..nr][0..nc].
void gpiv_free_ucmatrix(guchar **m)
Frees memory for 2-dimensional array of guchar data.
void gpiv_free_vector(gfloat *vector)
Frees memory for a 1-dimensional vector of gfloat data.
void gpiv_free_nulvector(long *vector)
Frees memory for a 1-dimensional vector of long data.
void gpiv_free_matrix_guint16(guint16 **m)
Frees a guint16 matrix allocated by gpiv_matrix_guint16.
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....
unsigned long * gpiv_ulvector(const long nl)
Allocates memory for a 1-dimensional vector of unsigned long 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_ulvector(unsigned long *vector)
Frees memory for a 1-dimensional vector of unsigned long data.
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....
void gpiv_free_double_matrix(double **m)
Frees a double matrix allocated by gpiv_double_matrix()
void gpiv_free_matrix_guint8(guint8 **m)
Frees a guint8 matrix allocated by gpiv_matrix_guint8.
void gpiv_free_matrix(gfloat **m)
Frees memory for 2-dimensional array of gfloat data.
void gpiv_free_ivector(gint *vector)
Frees memory for a 1-dimensional vector of integer data.
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....
fftw_real ** gpiv_fftw_real_matrix(glong nr, glong nc)
Allocates a contiguous 2-dimensional fftw_real_matrix matrix of nr x nc.
gboolean * gpiv_gbolvector(const glong nl)
Allocates memory for a 1-dimensional vector of gboolean data.
void gpiv_free_fftw_real_matrix(fftw_real **m)
Frees a gdouble matrix allocated by gpiv_fftw_real_matrix_matrix()
gint ** gpiv_imatrix_index(const long nrl, const long nrh, const long ncl, const long nch)
guchar ** gpiv_ucmatrix(const long nr, const long nc)
Allocates memory for 2-dimensional matrix of guchar data.
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....
gdouble * gpiv_dvector(const glong nl)
Allocates memory for a 1-dimensional vector of gdouble data.
void gpiv_free_imatrix(gint **m)
Frees memory for 2-dimensional array of integer data unappreciated, use gpiv_free_imatrix_index inste...
gint * gpiv_ivector(const long nl)
Allocates memory for a 1-dimensional vector of integer 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_imatrix_index(gint **m, const long nrl, const long nrh, const long ncl, const long nch)
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....
void gpiv_free_fftw_complex_matrix(fftw_complex **m)
Frees a fftw_real matrix allocated by gpiv_fftw_complex_matrix()
void gpiv_free_gbolvector(gboolean *vector)
Frees memory for a 1-dimensional vector of gboolean 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....
double ** gpiv_double_matrix(const glong nr, const glong nc)
Allocates a contiguous 2-dimensional double matrix of nr x nc.
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....
fftw_complex ** gpiv_fftw_complex_matrix(const long nr, const long nc)
Allocates a contiguous 2-dimensional fftw_complex matrix of nr x nc.
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....
gfloat ** gpiv_matrix(long nr, long nc)
Allocates memory for 2-dimensional matrix of gfloat data.

Generated for libgpiv-0.6.1 by doxygen 1.9.8