from arnoldi import arnoldi
import numpy as np
np.set_printoptions(precision=1)
A = np.random.rand(5,5)
B = A.T.dot(A)
V, H = arnoldi(A, 4)
print(np.around(H, decimals=1))
V, H = arnoldi(B, 4)
print(np.around(H, decimals=1))
V.T.dot(V)
A = np.array([[1,0,0],[2,1,0],[0,3,1]])