From: bangerth Date: Sat, 2 Aug 2008 01:22:12 +0000 (+0000) Subject: Add invalid_entry. Add ChunkSparseMatrix as a friend. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=490b07c812f4a3ef05de77e1f9085fa0ac230ef2;p=dealii-svn.git Add invalid_entry. Add ChunkSparseMatrix as a friend. git-svn-id: https://svn.dealii.org/trunk@16483 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/chunk_sparsity_pattern.h b/deal.II/lac/include/lac/chunk_sparsity_pattern.h index 2bae5c12c0..407c7d82c5 100644 --- a/deal.II/lac/include/lac/chunk_sparsity_pattern.h +++ b/deal.II/lac/include/lac/chunk_sparsity_pattern.h @@ -27,6 +27,9 @@ DEAL_II_NAMESPACE_OPEN +template class ChunkSparseMatrix; + + /*! @addtogroup Sparsity *@{ */ @@ -44,6 +47,33 @@ DEAL_II_NAMESPACE_OPEN class ChunkSparsityPattern : public Subscriptor { public: + + /** + * Define a value which is used + * to indicate that a certain + * value in the #colnums array + * is unused, i.e. does not + * represent a certain column + * number index. + * + * Indices with this invalid + * value are used to insert new + * entries to the sparsity + * pattern using the add() member + * function, and are removed when + * calling compress(). + * + * You should not assume that the + * variable declared here has a + * certain value. The + * initialization is given here + * only to enable the compiler to + * perform some optimizations, + * but the actual value of the + * variable may change over time. + */ + static const unsigned int invalid_entry = SparsityPattern::invalid_entry; + /** * Initialize the matrix empty, * that is with no memory @@ -816,6 +846,12 @@ class ChunkSparsityPattern : public Subscriptor * chunk_size by chunk_size. */ SparsityPattern sparsity_pattern; + + /** + * Make all the chunk sparse matrix kinds + * friends. + */ + template friend class ChunkSparseMatrix; };