libMesh
|
This defines the sparsity pattern, or graph, of a sparse matrix. More...
Classes | |
class | Build |
This helper class can be called on multiple threads to compute the sparsity pattern (or graph) of the sparse matrix resulting from the discretization. More... | |
class | Graph |
class | NonlocalGraph |
Typedefs | |
typedef std::vector< dof_id_type, Threads::scalable_allocator< dof_id_type > > | Row |
Functions | |
template<typename BidirectionalIterator > | |
static void | sort_row (const BidirectionalIterator begin, BidirectionalIterator middle, const BidirectionalIterator end) |
Splices the two sorted ranges [begin,middle) and [middle,end) into one sorted range [begin,end). More... | |
void | _dummy_function (void) |
Dummy function that does nothing but can be used to prohibit compiler optimization in some situations where some compilers have optimization bugs. More... | |
This defines the sparsity pattern, or graph, of a sparse matrix.
The format is quite simple – the global indices of the nonzero entries in each row are packed into a vector. The global indices (i,j) of the nth nonzero entry of row i are given by j = sparsity_pattern[i][n];
Defines the sparsity pattern of a sparse matrix.
typedef std::vector<dof_id_type, Threads::scalable_allocator<dof_id_type> > libMesh::SparsityPattern::Row |
Definition at line 51 of file sparsity_pattern.h.
void libMesh::SparsityPattern::_dummy_function | ( | void | ) |
Dummy function that does nothing but can be used to prohibit compiler optimization in some situations where some compilers have optimization bugs.
Definition at line 84 of file sparsity_pattern.C.
|
static |
Splices the two sorted ranges [begin,middle) and [middle,end) into one sorted range [begin,end).
This method is much like std::inplace_merge except it assumes the intersection of the two sorted ranges is empty and that any element in each range occurs only once in that range. Additionally, this sort occurs in-place, while std::inplace_merge may use a temporary buffer.
Referenced by libMesh::SparsityPattern::Build::handle_vi_vj().