title: 1d linear convolution in ANSI C code?
body: <p>Rather than reinvent the wheel, I wonder if anyone could refer me to a 1D linear <a href="http://mathworld.wolfram.com/Convolution.html">convolution</a> code snippet in ANSI C? I did a search on google and in stack overflow, but couldn't find anything in C I could use. </p>
  
  <p>For example, for Arrays A, B, and C, all double-precision, where A and B are inputs and C is output, having lengths <code>len_A</code>, <code>len_B</code>, and <code>len_C = len_A + len_B - 1</code>, respectively. </p>
  
  <p>My array sizes are small and so any speed increase in implementing fast convolution by FFT is not needed. Looking for straightforward computation.</p>