Linear Algebra, Mathematics, Science, Computational Thinking.
array([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]]) While applying the Identity matrix to a vector the result is the same vector x = np.array([[2],[6],[3]]) x array([[2], [6], [3]]) xid = np.eye(x.shape[0]).dot(x) xid array([[2.], [6.], [3.]]) Intuition You can think of a matrix as a way to transform