10#ifndef TPETRA_DETAILS_MERGE_HPP
11#define TPETRA_DETAILS_MERGE_HPP
13#include "TpetraCore_config.h"
14#include "Teuchos_TestForException.hpp"
40template<
class OrdinalType,
class IndexType>
74#ifdef HAVE_TPETRA_DEBUG
99template<
class OrdinalType,
class IndexType>
126#ifdef HAVE_TPETRA_DEBUG
171template<
class OrdinalType,
class IndexType>
172std::pair<bool, IndexType>
218 return std::make_pair (
false,
newRowLen);
247#ifdef HAVE_TPETRA_DEBUG
249 (
newPos !=
newRowLen, std::logic_error,
"mergeSortedIndices: newPos = "
264 return std::make_pair (
true,
newPos);
291template<
class OrdinalType,
class IndexType>
292std::pair<bool, IndexType>
337 return std::make_pair (
false,
newRowLen);
356 return std::make_pair (
true,
newPos);
385template<
class OrdinalType,
class ValueType,
class IndexType>
386std::pair<bool, IndexType>
434 return std::make_pair (
false,
newRowLen);
455 return std::make_pair (
true,
newPos);
Struct that holds views of the contents of a CrsMatrix.
Implementation details of Tpetra.
std::pair< bool, IndexType > mergeSortedIndices(OrdinalType curInds[], const IndexType midPos, const IndexType endPos, const OrdinalType inputInds[], const IndexType numInputInds)
Attempt to merge the input indices into the current row's column indices, assuming that both the curr...
IndexType countMergeSortedIndices(const OrdinalType curInds[], const IndexType numCurInds, const OrdinalType inputInds[], const IndexType numInputInds)
Count the number of column indices that can be merged into the current row, assuming that both the cu...
std::pair< bool, IndexType > mergeUnsortedIndices(OrdinalType curInds[], const IndexType midPos, const IndexType endPos, const OrdinalType inputInds[], const IndexType numInputInds)
Attempt to merge the input indices into the current row's column indices, assuming that both the curr...
IndexType countMergeUnsortedIndices(const OrdinalType curInds[], const IndexType numCurInds, const OrdinalType inputInds[], const IndexType numInputInds)
Count the number of column indices that can be merged into the current row, assuming that both the cu...
std::pair< bool, IndexType > mergeUnsortedIndicesAndValues(OrdinalType curInds[], ValueType curVals[], const IndexType midPos, const IndexType endPos, const OrdinalType inputInds[], const ValueType inputVals[], const IndexType numInputInds)
Attempt to merge the input indices and values into the current row's column indices and corresponding...
Namespace Tpetra contains the class and methods constituting the Tpetra library.