/* convolute.h - header file for convolution(s) and filters  */

#ifndef _CONVOLUTE_H_
#define _CONVOLUTE_H_

#ifdef __cplusplus
extern "C" {
#endif
#if 0
}
#endif

typedef struct {float re; float im;} fcomplex;

fcomplex cfconvolute(const fcomplex * f, int pos, size_t flen,
                     const float * g, size_t left_center, size_t right);

void cffilter(fcomplex * out, const fcomplex * in, size_t dim,
              const float * a, size_t q,
              const float * b, size_t p);

#if 0
{
#endif
#ifdef __cplusplus
}
#endif

#endif /* _CONVOLUTE_H_ */

