A fix for older numpy versions, as the numpy.add() function argument 'out' is relatively new.