From: Denis Davydov Date: Mon, 18 Dec 2017 14:19:34 +0000 (+0100) Subject: adjust LAPACKFullMatrix::print_formatted() to output lower triangular part for Cholesky X-Git-Tag: v9.0.0-rc1~638^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d4d051833013b54de0ca97d3839289d3608e455;p=dealii.git adjust LAPACKFullMatrix::print_formatted() to output lower triangular part for Cholesky --- diff --git a/source/lac/lapack_full_matrix.cc b/source/lac/lapack_full_matrix.cc index bed672572a..3e8246ce8a 100644 --- a/source/lac/lapack_full_matrix.cc +++ b/source/lac/lapack_full_matrix.cc @@ -1440,7 +1440,9 @@ LAPACKFullMatrix::print_formatted ( for (size_type i=0; in_rows(); ++i) { - for (size_type j=0; jn_cols(); ++j) + // Cholesky is stored in lower triangular, so just output this part: + const size_type nc = state == LAPACKSupport::cholesky ? i+1 : this->n_cols(); + for (size_type j=0; j