FEI Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
fei::SparseRowGraph Class Reference

#include <fei_SparseRowGraph.hpp>

Public Member Functions

 SparseRowGraph ()
 
 SparseRowGraph (const SparseRowGraph &src)
 
virtual ~SparseRowGraph ()
 
bool operator== (const fei::SparseRowGraph &othergraph) const
 
bool operator!= (const fei::SparseRowGraph &othergraph) const
 

Public Attributes

std::vector< int > rowNumbers
 
std::vector< int > rowOffsets
 
std::vector< int > packedColumnIndices
 
bool blockEntries
 

Detailed Description

Extremely simple data container that represents a sparse row-oriented matrix-graph. Purely serial. If it is used to store the local portion of a distributed matrix-graph, the calling code is responsible for all knowledge related to parallelism.

Definition at line 23 of file fei_SparseRowGraph.hpp.

Constructor & Destructor Documentation

◆ SparseRowGraph() [1/2]

fei::SparseRowGraph::SparseRowGraph ( )
inline

Default constructor

Definition at line 26 of file fei_SparseRowGraph.hpp.

References blockEntries, packedColumnIndices, rowNumbers, and rowOffsets.

Referenced by SparseRowGraph().

◆ SparseRowGraph() [2/2]

fei::SparseRowGraph::SparseRowGraph ( const SparseRowGraph & src)
inline

Copy constructor

Definition at line 31 of file fei_SparseRowGraph.hpp.

References blockEntries, packedColumnIndices, rowNumbers, rowOffsets, and SparseRowGraph().

◆ ~SparseRowGraph()

virtual fei::SparseRowGraph::~SparseRowGraph ( )
inlinevirtual

Destructor

Definition at line 37 of file fei_SparseRowGraph.hpp.

Member Function Documentation

◆ operator==()

bool fei::SparseRowGraph::operator== ( const fei::SparseRowGraph & othergraph) const
inline

comparison operator

Definition at line 65 of file fei_SparseRowGraph.hpp.

References packedColumnIndices, rowNumbers, and rowOffsets.

◆ operator!=()

bool fei::SparseRowGraph::operator!= ( const fei::SparseRowGraph & othergraph) const
inline

not-equal operator

Definition at line 73 of file fei_SparseRowGraph.hpp.

Member Data Documentation

◆ rowNumbers

◆ rowOffsets

std::vector<int> fei::SparseRowGraph::rowOffsets

The starting offset of each row in the packedColumnIndices vector. The i-th row corresponds to positions rowOffsets[i] through rowOffsets[i+1]-1. Note that rowOffsets should have length rowNumbers.size()+1, and rowOffsets[rowNumbers.size()] == packedColumnIndices.size().

Definition at line 54 of file fei_SparseRowGraph.hpp.

Referenced by fei::impl_utils::add_to_graph(), fei::impl_utils::add_to_matrix(), EqnCommMgr::addRemoteEqns(), fei::copyToSparseRowGraph(), SNL_FEI_Structure::createMatrixPositions(), snl_fei::LinearSystem_General::enforceEssentialBC_LinSysCore(), fei::find_row_start(), fei::Matrix_core::gatherFromOverlap(), snl_fei::gatherRemoteEssBCs(), snl_fei::mergeSparseRowGraphs(), operator==(), SparseRowGraph(), SparseRowGraph(), LinSysCoreFilter::sumIntoMatrix(), and fei::impl_utils::unpack_CSRMat().

◆ packedColumnIndices

◆ blockEntries

bool fei::SparseRowGraph::blockEntries

whether this graph represents a block-entry matrix.

Definition at line 62 of file fei_SparseRowGraph.hpp.

Referenced by SparseRowGraph(), and SparseRowGraph().


The documentation for this class was generated from the following file: