Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
crosscorr.h File Reference
#include "gromacs/utility/real.h"
+ Include dependency graph for crosscorr.h:
+ This graph shows which files directly or indirectly include this file:

Description

Declares routine for computing a cross correlation between two data sets.

Author
David van der Spoel david.nosp@m..van.nosp@m.dersp.nosp@m.oel@.nosp@m.icm.u.nosp@m.u.se

Functions

void cross_corr (int n, real f[], real g[], real corr[])
 fft cross correlation algorithm. Computes corr = f (.) g More...
 
void many_cross_corr (int nFunc, int *nData, real **f, real **g, real **corr)
 fft cross correlation algorithm. More...
 

Function Documentation

void cross_corr ( int  n,
real  f[],
real  g[],
real  corr[] 
)

fft cross correlation algorithm. Computes corr = f (.) g

Parameters
[in]nnumber of data point
[in]fFirst function
[in]gSecond function
[out]corrThe cross correlation
void many_cross_corr ( int  nFunc,
int *  nData,
real **  f,
real **  g,
real **  corr 
)

fft cross correlation algorithm.

Computes corr[n] = f[n]i g[n][i], that is for nFunc pairs of arrays n the cross correlation is computed in parallel using OpenMP.

Parameters
[in]nFuncnuber of function to crosscorrelate
[in]nDatanumber of data point in eatch function
[in]f2D array of first function to crosscorrelate
[in]g2D array of second function to crosscorrelate
[out]corr2D array of the cross correlations