17 #ifndef __deal2__compressed_simple_sparsity_pattern_h
18 #define __deal2__compressed_simple_sparsity_pattern_h
21 #include <deal.II/base/config.h>
22 #include <deal.II/base/subscriptor.h>
23 #include <deal.II/base/utilities.h>
24 #include <deal.II/lac/exceptions.h>
25 #include <deal.II/base/index_set.h>
31 DEAL_II_NAMESPACE_OPEN
235 template <
typename ForwardIterator>
237 ForwardIterator begin,
239 const bool indices_are_unique_and_sorted =
false);
270 void print (std::ostream &out)
const;
445 template <
typename ForwardIterator>
448 const bool indices_are_sorted);
483 std::vector<size_type>::iterator
532 lines[rowindex].add (j);
537 template <
typename ForwardIterator>
541 ForwardIterator begin,
543 const bool indices_are_sorted)
552 lines[rowindex].add_entries (begin, end, indices_are_sorted);
573 return lines[rowindex].entries.size();
588 ExcIndexRangeType<size_type> (index, 0,
lines[local_row].entries.size()));
589 return lines[local_row].entries[index];
600 return lines[local_row].entries.begin();
611 return lines[local_row].entries.end();
633 DEAL_II_NAMESPACE_CLOSE
size_type memory_consumption() const
Iterator lower_bound(Iterator first, Iterator last, const T &val)
CompressedSimpleSparsityPattern & operator=(const CompressedSimpleSparsityPattern &)
types::global_dof_index index_within_set(const types::global_dof_index global_index) const
size_type memory_consumption() const
void add_entries(ForwardIterator begin, ForwardIterator end, const bool indices_are_sorted)
types::global_dof_index size() const
size_type max_entries_per_row() const
std::vector< size_type > entries
void print(std::ostream &out) const
void print_gnuplot(std::ostream &out) const
size_type n_nonzero_elements() const
std::vector< Line > lines
unsigned int global_dof_index
#define Assert(cond, exc)
CompressedSimpleSparsityPattern()
void add(const size_type i, const size_type j)
row_iterator row_begin(const size_type row) const
void add(const size_type col_num)
static bool stores_only_added_elements()
void add_entries(const size_type row, ForwardIterator begin, ForwardIterator end, const bool indices_are_unique_and_sorted=false)
bool exists(const size_type i, const size_type j) const
size_type row_length(const size_type row) const
row_iterator row_end(const size_type row) const
const IndexSet & row_index_set() const
size_type column_number(const size_type row, const size_type index) const
void reinit(const size_type m, const size_type n, const IndexSet &rowset=IndexSet())
size_type bandwidth() const
::ExceptionBase & ExcInternalError()
types::global_dof_index size_type
bool is_element(const types::global_dof_index index) const
std::vector< size_type >::const_iterator row_iterator