fn format_matrix_elements(v: &Vector, nrow: usize, ncol: usize) -> Vec<String>
Format matrix elements as strings, stored in row-major order.