20 #ifndef GEOS_LINEARALGEBRA_UTILITIES_SPARSITYPATTERNUTILITIES_HPP_
21 #define GEOS_LINEARALGEBRA_UTILITIES_SPARSITYPATTERNUTILITIES_HPP_
47 for(
localIndex row = 0; row < source.numRows(); ++row )
49 globalIndex const *
const columns = source.getColumns( row ).dataIfContiguous();
50 target.insertNonZeros( row, columns, columns + source.numNonZeros( row ) );
#define GEOS_ERROR_IF_NE(lhs, rhs)
Raise a hard error if two values are not equal.
GEOS_GLOBALINDEX_TYPE globalIndex
Global index type (for indexing objects across MPI partitions).
LvArray::SparsityPattern< COL_INDEX, INDEX_TYPE, LvArray::ChaiBuffer > SparsityPattern
Alias for Sparsity pattern class.
GEOS_LOCALINDEX_TYPE localIndex
Local index type (for indexing objects within an MPI partition).
void appendSparsityPattern(SparsityPattern< globalIndex > &target, SparsityPattern< globalIndex > const &source)
Append all entries from one sparsity pattern to another.