Z = np.zeros((5,5))
Z += np.arange(5) # matrix + row
print Z
[[ 0. 1. 2. 3. 4.]
[ 0. 1. 2. 3. 4.]
[ 0. 1. 2. 3. 4.]]