In [1]:
import numpy as np
In [3]:
M = np.eye(2)
x = np.random.rand(2)
In [4]:
for i in range(5):
    x = M.dot(x)
    print(x)
[ 0.03307861  0.04521139]
[ 0.03307861  0.04521139]
[ 0.03307861  0.04521139]
[ 0.03307861  0.04521139]
[ 0.03307861  0.04521139]
In [ ]: