Data Science, Linear Algebra, Mathematics.
similar to identity, where every element is 0 except for one element in a row, which is 1. Image from Wikipedia To flip rows in a matrix A we multiply a permutation matrix P on the left (PA). To flip cols, we multiply a permutation matrix P on the right (AP) Image by author Click here to learn how