Public Member Functions | Public Attributes

CompressedSimpleSparsityPattern::Line Struct Reference

List of all members.

Public Member Functions

 Line ()
void add (const unsigned int col_num)
template<typename ForwardIterator >
void add_entries (ForwardIterator begin, ForwardIterator end, const bool indices_are_sorted)
std::size_t memory_consumption () const

Public Attributes

std::vector< unsigned int > entries

Detailed Description

Store some data for each row describing which entries of this row are nonzero. Data is stored sorted in the entries std::vector. The vector per row is dynamically growing upon insertion doubling its memory each time.

Definition at line 404 of file compressed_simple_sparsity_pattern.h.


Constructor & Destructor Documentation

CompressedSimpleSparsityPattern::Line::Line ( ) [inline]

Constructor.

Definition at line 542 of file compressed_simple_sparsity_pattern.h.


Member Function Documentation

void CompressedSimpleSparsityPattern::Line::add ( const unsigned int  col_num) [inline]

Add the given column number to this line.

Definition at line 455 of file compressed_simple_sparsity_pattern.h.

References entries, and Utilities::lower_bound().

template<typename ForwardIterator >
void CompressedSimpleSparsityPattern::Line::add_entries ( ForwardIterator  begin,
ForwardIterator  end,
const bool  indices_are_sorted 
)

Add the columns specified by the iterator range to this line.

std::size_t CompressedSimpleSparsityPattern::Line::memory_consumption ( ) const

estimates memory consumption.


Member Data Documentation

Storage for the column indices of this row. This array is always kept sorted.

Definition at line 412 of file compressed_simple_sparsity_pattern.h.

Referenced by add().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Wed May 23 2012 06:08:26 by doxygen 1.7.3