I have these two arrays:
import numpy as np a = np.array([0, 10, 20]) b = np.array([20, 30, 40, 50])
I´d like to add both in the followin
you can use outer method of ufunc:
np.add.outer(a, b).ravel()