00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00055 #ifndef __LIBGPIV_PIV_UTILS_H__
00056 #define __LIBGPIV_PIV_UTILS_H__
00057
00065 void
00066 gpiv_null_pivdata (GpivPivData *piv_data
00067 );
00068
00069
00077 GpivPivData *
00078 gpiv_alloc_pivdata (const guint nx,
00079 const guint ny
00080 );
00081
00088 gchar *
00089 gpiv_check_alloc_pivdata (const GpivPivData *piv_data
00090 );
00091
00100 void
00101 gpiv_free_pivdata (GpivPivData *piv_data
00102 );
00103
00104
00105
00114 gchar *
00115 gpiv_0_pivdata (GpivPivData *piv_data
00116 );
00117
00118
00119
00128 GpivPivData *
00129 gpiv_cp_pivdata (const GpivPivData *piv_data
00130 );
00131
00132
00142 gchar *
00143 gpiv_ovwrt_pivdata (const GpivPivData *piv_data_in,
00144 GpivPivData *piv_data_out
00145 );
00146
00147
00148
00158 gchar *
00159 gpiv_add_dxdy_pivdata (const GpivPivData *piv_data_in,
00160 GpivPivData *piv_data_out
00161 );
00162
00163
00164
00174 gchar *
00175 gpiv_sum_dxdy_pivdata (const GpivPivData *piv_data,
00176 gfloat *sum
00177 );
00178
00179
00180
00193 gchar *
00194 gpiv_piv_gnuplot (const gchar *title,
00195 const gfloat gnuplot_scale,
00196 const gchar *GNUPLOT_DISPLAY_COLOR,
00197 const guint GNUPLOT_DISPLAY_SIZE,
00198 const GpivImagePar *image_par,
00199 const GpivPivPar *piv_par,
00200 const GpivPivData *piv_data
00201 );
00202
00203
00204
00212 GpivCov *
00213 gpiv_alloc_cov (const guint int_size0,
00214 const gboolean x_corr
00215 );
00216
00223 void
00224 gpiv_free_cov (GpivCov *cov
00225 );
00226
00227
00228
00229
00230
00231 #ifdef ENABLE_MPI
00232
00244 void
00245 gpiv_piv_mpi_scatter_pivdata (GpivPivData *pd,
00246 GpivPivData *pd_scat,
00247 guint nprocs
00248 );
00249
00259 void
00260 gpiv_piv_mpi_gather_pivdata (GpivPivData *pd_scat,
00261 GpivPivData *pd,
00262 guint nprocs
00263 );
00264
00272 gint *
00273 gpiv_piv_mpi_compute_counts (const guint nx,
00274 const guint ny
00275 );
00276
00285 gint *
00286 gpiv_piv_mpi_compute_displs (gint *counts,
00287 const guint nx,
00288 const guint ny
00289 );
00290
00305 void
00306 gpiv_piv_mpi_scatterv_pivdata (GpivPivData *pd,
00307 GpivPivData *pd_scat,
00308 gint *counts,
00309 gint *displs
00310 );
00311
00326 void
00327 gpiv_piv_mpi_gatherv_pivdata (GpivPivData *pd_scat,
00328 GpivPivData *pd,
00329 gint *counts,
00330 gint *displs
00331 );
00332
00342 void
00343 gpiv_piv_mpi_bcast_pivdata (GpivPivData *pd
00344 );
00345
00346 #endif
00347 #endif