Editors Pick, Essential Math, Machine Learning, Data Science, Mathematics.
transformation matrix T to the first two-dimensional point (xy[:, 0]), for instance: You can similarly apply T to each point by calculating its product with the matrix containing all points: You can see that the shape is still (2, 400). Each transformed vector (that is, each point of the grid) is