![]() |
deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+00:00
|
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 703 of file dynamic_sparsity_pattern.h.
Public Member Functions | |
| void | add (const size_type col_num) |
| template<typename ForwardIterator > | |
| void | add_entries (ForwardIterator begin, ForwardIterator end, const bool indices_are_sorted, ScratchData &scratch_data) |
| size_type | memory_consumption () const |
Public Attributes | |
| std::vector< size_type > | entries |
|
inline |
Add the given column number to this line.
Definition at line 1006 of file dynamic_sparsity_pattern.h.
| template void DynamicSparsityPattern::Line::add_entries | ( | ForwardIterator | begin, |
| ForwardIterator | end, | ||
| const bool | indices_are_sorted, | ||
| ScratchData & | scratch_data | ||
| ) |
Add the columns specified by the iterator range to this line.
| [in] | begin | Iterator to the beginning of the range. |
| [in] | end | Iterator to the end of the range. |
| [in] | indices_are_sorted | Whether or not the indices are both sorted and unique. |
| [in] | scratch_data | Scratch object containing buffers used to merge the existing indices and the new indices. This is typically the thread-local one stored by DynamicSparsityPattern: this function will reallocate said buffers as needed. |
Definition at line 31 of file dynamic_sparsity_pattern.cc.
| DynamicSparsityPattern::size_type DynamicSparsityPattern::Line::memory_consumption | ( | ) | const |
estimates memory consumption.
Definition at line 136 of file dynamic_sparsity_pattern.cc.
| std::vector<size_type> DynamicSparsityPattern::Line::entries |
Storage for the column indices of this row. This array is always kept sorted.
Definition at line 710 of file dynamic_sparsity_pattern.h.