|
| CooMatrixImpl ()=default |
| Default constructor. More...
|
|
void | sumIntoGlobalValue (const GO gblRowInd, const GO gblColInd, const SC &val) |
| Insert one entry locally into the sparse matrix, if it does not exist there yet. If it does exist, sum the values. More...
|
|
void | sumIntoGlobalValues (const GO gblRowInds[], const GO gblColInds[], const SC vals[], const std::size_t numEnt) |
| Insert multiple entries locally into the sparse matrix. More...
|
|
std::size_t | getLclNumEntries () const |
| Number of entries in the sparse matrix on the calling process. More...
|
|
void | forAllEntries (std::function< void(const GO, const GO, const SC &)> f) const |
| Execute the given function for all entries of the sparse matrix, sequentially (no thread parallelism). Do not modify entries. More...
|
|
void | mergeIntoRow (const GO tgtGblRow, const CooMatrixImpl< SC, GO > &src, const GO srcGblRow) |
| Into global row tgtGblRow of *this , merge global row srcGblRow of src . More...
|
|
int | countPackRow (int &numPackets, const GO gblRow, const ::Teuchos::Comm< int > &comm, std::ostream *errStrm=NULL) const |
| Count the number of packets (bytes, in this case) needed to pack the given row of the matrix. More...
|
|
void | packRow (packet_type outBuf[], const int outBufSize, int &outBufCurPos, const ::Teuchos::Comm< int > &comm, std::vector< GO > &gblRowInds, std::vector< GO > &gblColInds, std::vector< SC > &vals, const GO gblRow) const |
| Pack the given row of the matrix. More...
|
|
GO | getMyGlobalRowIndices (std::vector< GO > &rowInds) const |
| Get the global row indices on this process, sorted and made unique, and return the minimum global row index on this process. More...
|
|
template<class OffsetType , class LO > |
void | buildLocallyIndexedCrs (std::vector< OffsetType > &rowOffsets, LO lclColInds[], SC vals[], std::function< LO(const GO)> gblToLcl) const |
| Build a locally indexed version of CRS storage. More...
|
|
template<class SC, class GO>
class Tpetra::Details::Impl::CooMatrixImpl< SC, GO >
Implementation detail of Tpetra::Details::CooMatrix (which see below).
Definition at line 97 of file Tpetra_Details_CooMatrix.hpp.
template<class SC, class GO>
template<class OffsetType , class LO >
void Tpetra::Details::Impl::CooMatrixImpl< SC, GO >::buildLocallyIndexedCrs |
( |
std::vector< OffsetType > & |
rowOffsets, |
|
|
LO |
lclColInds[], |
|
|
SC |
vals[], |
|
|
std::function< LO(const GO)> |
gblToLcl |
|
) |
| const |
|
inline |
Build a locally indexed version of CRS storage.
Build a locally indexed version of compressed row sparse (CRS, also known as "compressed sparse row," CSR) storage.
- Parameters
-
rowOffsets | [out] Row offsets. |
lclColInds | [out] The matrix's local column indices; must have at least getLclNumEntries() entries. |
vals | [out] The matrix's values; must have at least getLclNumEntries() entries. |
gblToLcl | [in] Closure that can convert a global column index to a local column index. |
Definition at line 480 of file Tpetra_Details_CooMatrix.hpp.