42#ifndef TPETRA_DETAILS_MERGE_HPP
43#define TPETRA_DETAILS_MERGE_HPP
45#include "TpetraCore_config.h"
46#include "Teuchos_TestForException.hpp"
72template<
class OrdinalType,
class IndexType>
106#ifdef HAVE_TPETRA_DEBUG
131template<
class OrdinalType,
class IndexType>
158#ifdef HAVE_TPETRA_DEBUG
203template<
class OrdinalType,
class IndexType>
204std::pair<bool, IndexType>
250 return std::make_pair (
false,
newRowLen);
279#ifdef HAVE_TPETRA_DEBUG
281 (
newPos !=
newRowLen, std::logic_error,
"mergeSortedIndices: newPos = "
296 return std::make_pair (
true,
newPos);
323template<
class OrdinalType,
class IndexType>
324std::pair<bool, IndexType>
369 return std::make_pair (
false,
newRowLen);
388 return std::make_pair (
true,
newPos);
417template<
class OrdinalType,
class ValueType,
class IndexType>
418std::pair<bool, IndexType>
466 return std::make_pair (
false,
newRowLen);
487 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.