fix array(ld,cols) to pass to generate_distributed_matrix_array
verified that allocatable array can be passed to generate_distributed_matrix_array