Open KyleVaughn opened 11 months ago
Review by @shujhan
In the description, it may be better to include a sample of results in the output file, e.g: [a_11 a_12 a_13 ..... a_1col a_21 a_22 a_23 ..... a_2col ... ... ... ..... ... a_row1 a_row2 ... ... a_rowcol]
Thanks for the comment!
Description:
This issue describes implementing a method that prints the dense matrix A into a file. The method takes in the dense matrix A, nrows, ncols as the input and prints the 2D matrix into a file with the filename "DEN_matrix.out". View methods are essential to ensure the correct initialization and assignment of matrix coefficients. This view method can also provide a basis for debugging other sparse matrix initialization formats as it can serve as validation.
Tasks:
void DEN_view(double **A, const size_t nrows, const size_t ncols)
cout >>
Definition of done:
The file "DEN_matrix.out" is created with the dense matrix printed with appropriate spacing between the elements. Sample output: [a11 a12 a13 ... a1col a21 a22 a23 ... a2col ... arow1 arow2 arow3 ... arowcol]