Linear transformations on nonnegative matrices