Linear transformations on matrices