Computational Physics, Linear Algebra, Math, Mathematics, Science.
values newX = np.zeros(len(x)) newY = np.zeros(len(x)) for i in range(len(x)): unitVector_i = np.array([x[i], y[i]]) # Apply the matrix to the vector newXY = transformMatrix.dot(unitVector_i) newX[i] = newXY[0] newY[i] = newXY[1] plotVectors([eigVecs[:,0], eigVecs[:,1]], cols=[blue, blue])