add interace of generate_distributed_matrix_function_row/col_major to generate_distributed_matrix_function