<ol>
+ <li> <p> New: The function <code
+ class="member">BlockSparsityPattern::row_length</code> adds up
+ the row lengths of the individual blocks of a block matrix for
+ a given row.
+ <br>
+ (WB 2006/04/25)
+ </p>
+
+
<li> <p> New: There is a new class <code
class="class">IdentityMatrix</code> that represents an
efficient version of the matrix with ones on the diagonal and
* position may be non-zero.
*/
bool exists (const unsigned int i, const unsigned int j) const;
+
+ /**
+ * Number of entries in a
+ * specific row, added up over
+ * all the blocks that form this
+ * row.
+ */
+ unsigned int row_length (const unsigned int row) const;
/**
* Return the number of nonzero
+template <class SparsityPatternBase>
+inline
+unsigned int
+BlockSparsityPatternBase<SparsityPatternBase>::
+row_length (const unsigned int row) const
+{
+ const std::pair<unsigned int,unsigned int>
+ row_index = row_indices.global_to_local (row);
+
+ unsigned int c = 0;
+
+ for (unsigned int b=0; b<rows; ++b)
+ c += sub_objects[row_index.first][b]->row_length (row_index.second);
+
+ return c;
+}
+
+
+
template <class SparsityPatternBase>
inline
unsigned int