From: Peter Munch Date: Tue, 15 Oct 2024 08:32:15 +0000 (+0200) Subject: Introduce LAPACKFullMatrix::get_state() X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17782%2Fhead;p=dealii.git Introduce LAPACKFullMatrix::get_state() --- diff --git a/doc/news/changes/minor/20241015Munch-1 b/doc/news/changes/minor/20241015Munch-1 new file mode 100644 index 0000000000..b62e30c482 --- /dev/null +++ b/doc/news/changes/minor/20241015Munch-1 @@ -0,0 +1,6 @@ +Improved: The new function LAPACKFullMatrix::get_state() allows to +query the current state of LAPACKFullMatrix, which allows to decide +which method (e.g., LAPACKFullMatrix::solve() vs. +LAPACKFullMatrix::vmult()) to use. +
+(Peter Munch, 2024/10/15) diff --git a/include/deal.II/lac/lapack_full_matrix.h b/include/deal.II/lac/lapack_full_matrix.h index aa15249f94..7d9596077a 100644 --- a/include/deal.II/lac/lapack_full_matrix.h +++ b/include/deal.II/lac/lapack_full_matrix.h @@ -917,6 +917,12 @@ public: const double threshold = 0., const char *separator = " ") const; + /** + * Return current state after the last operation here. + */ + LAPACKSupport::State + get_state() const; + private: /** * Internal function to compute various norms. diff --git a/source/lac/lapack_full_matrix.cc b/source/lac/lapack_full_matrix.cc index 4f09243e36..38d52117bf 100644 --- a/source/lac/lapack_full_matrix.cc +++ b/source/lac/lapack_full_matrix.cc @@ -2574,6 +2574,15 @@ LAPACKFullMatrix::print_formatted(std::ostream &out, } + +template +LAPACKSupport::State +LAPACKFullMatrix::get_state() const +{ + return this->state; +} + + //----------------------------------------------------------------------// template