convolution takes two arguments, a real vector v of length n and a real vector w of length m , and returns their convolution z=v∗w which is the vector of length N=n+m−1 defined as :
zk= |
| vi wk−i, k=0,1,…,N−1, |
such that vj=0 for j≥ n and wj=0 for j≥ m . For example, input :
Output :