Convolution in Python

Convolution in Python, for merging filter responses, creating pascals triangle ...

import numpy as np

a= np.array([1,1])
b= np.array([1,1])

c =np.convolve(a, b)
c
> array([1, 2, 1])

social