Commit 5e5bd2d081d65eb4b818d71eda4a2079e926b2b9

Authored by Jürgen Knödlseder
1 parent 973bbf0b

Add matrix elements to print() method.

Matrix elements are now also displayed using the print() method. Note that for matrices with more than a given number of rows and columns (10 for the time being), excedent elements will be replaced by ..., showing only the corners of the matrix.
Showing 1 changed file with 3 additions and 3 deletions
src/linalg/GSparseMatrix.cpp
@@ -1751,9 +1751,9 @@ std::string GSparseMatrix::print(void) const @@ -1751,9 +1751,9 @@ std::string GSparseMatrix::print(void) const
1751 } 1751 }
1752 1752
1753 // Append elements and compression schemes 1753 // Append elements and compression schemes
1754 - //result.append(print_elements());  
1755 - //result.append(print_row_compression());  
1756 - //result.append(print_col_compression()); 1754 + result.append(print_elements());
  1755 + result.append(print_row_compression());
  1756 + result.append(print_col_compression());
1757 1757
1758 // Append symbolic decomposition if available 1758 // Append symbolic decomposition if available
1759 //if (m_symbolic != NULL) { 1759 //if (m_symbolic != NULL) {