Performs 1D convolution of two vectors in C++ via FFT.
Arguments
- a
The first numeric vector.
- b
The second numeric vector.
- shape
(optional) The shape of the output: "full", "same", or "valid". Default is "full," matching
convand the Armadillo default, which means that the output array islength(a)+length(b)- 1.