trace - the input array of floats.
nt - the number of points in the input array.
filter - the filter used.
nf - the number of points in the filter.
result - the output
nr - the number of points in the output, a returned value.
iflag - If 1, do convolution, if 2, do correlation.