If I have two numpy arrays of different sizes, how can I superimpose them.
a = numpy([0, 10, 20, 30]) b = numpy([20, 30, 40, 50, 60, 70])
What
Very similar to the one above, but a little more compact:
l = sorted((a, b), key=len) c = l[1].copy() c[:len(l[0])] += l[0]