Factored matrix_print.