17 #ifndef __deal2__compressed_set_sparsity_pattern_h
18 #define __deal2__compressed_set_sparsity_pattern_h
21 #include <deal.II/base/config.h>
22 #include <deal.II/base/subscriptor.h>
23 #include <deal.II/lac/exceptions.h>
29 DEAL_II_NAMESPACE_OPEN
235 template <
typename ForwardIterator>
237 ForwardIterator begin,
239 const bool indices_are_sorted =
false);
270 void print (std::ostream &out)
const;
387 std::set<size_type> entries;
404 template <
typename ForwardIterator>
406 ForwardIterator end);
437 template <
typename ForwardIterator>
443 entries.insert (begin, end);
479 template <
typename ForwardIterator>
483 ForwardIterator begin,
489 lines[row].add_entries (begin, end);
500 return lines[row].entries.size();
509 return (
lines[row].entries.begin ());
518 return (
lines[row].entries.end ());
531 DEAL_II_NAMESPACE_CLOSE
row_iterator row_begin(const size_type row) const
std::vector< Line > lines
void add_entries(ForwardIterator begin, ForwardIterator end)
void print(std::ostream &out) const
void add_entries(const size_type row, ForwardIterator begin, ForwardIterator end, const bool indices_are_sorted=false)
void add(const size_type i, const size_type j)
size_type bandwidth() const
size_type max_entries_per_row() const
unsigned int global_dof_index
#define Assert(cond, exc)
CompressedSetSparsityPattern()
row_iterator row_end(const size_type row) const
void add(const size_type col_num)
size_type row_length(const size_type row) const
size_type n_nonzero_elements() const
static bool stores_only_added_elements()
void reinit(const size_type m, const size_type n)
void print_gnuplot(std::ostream &out) const
bool exists(const size_type i, const size_type j) const
std::set< size_type >::const_iterator row_iterator
CompressedSetSparsityPattern & operator=(const CompressedSetSparsityPattern &)
types::global_dof_index size_type