From 64cc37ed85e4c27e1ab27cfe3699a8bc6179466a Mon Sep 17 00:00:00 2001 From: brian Date: Thu, 22 May 2003 15:11:24 +0000 Subject: [PATCH] added empty(), and changed inheritance git-svn-id: https://svn.dealii.org/trunk@7667 0785d39b-7218-0410-832d-ea1e28bc413d --- .../lac/include/lac/sparse_decomposition.h | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/deal.II/lac/include/lac/sparse_decomposition.h b/deal.II/lac/include/lac/sparse_decomposition.h index 8877120d9e..5ba88fd694 100644 --- a/deal.II/lac/include/lac/sparse_decomposition.h +++ b/deal.II/lac/include/lac/sparse_decomposition.h @@ -119,7 +119,8 @@ * Hartmann, 2003 */ template -class SparseLUDecomposition : protected SparseMatrix +class SparseLUDecomposition : protected SparseMatrix, + public virtual Subscriptor { public: @@ -283,6 +284,7 @@ class SparseLUDecomposition : protected SparseMatrix * compability. It will be removed * in later versions. */ + void reinit (); /** @@ -311,6 +313,13 @@ class SparseLUDecomposition : protected SparseMatrix */ virtual bool is_decomposed () const; + /** + * Return whether the object is + * empty. It calls the inherited + * SparseMatrix::empty() function. + */ + bool empty () const; + /** * Determine an estimate for the * memory consumption (in bytes) @@ -451,6 +460,15 @@ SparseLUDecomposition::is_decomposed () const +template +inline bool +SparseLUDecomposition::empty () const +{ + return SparseMatrix::empty(); +} + + + //----------------------------------------------------------------------// -- 2.39.5