bkochuna / ners570f23-SpMV

1 stars 0 forks source link

Add a DEN view method #50

Open KyleVaughn opened 11 months ago

KyleVaughn commented 11 months ago

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:

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]

KyleVaughn commented 11 months ago

Review by @shujhan

shujhan commented 11 months ago

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]

arsridha commented 11 months ago

Thanks for the comment!