Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Namespaces | Functions
Zoltan2_Sort.hpp File Reference

Sort vector of pairs (key, value) by value. More...

#include <Teuchos_Array.hpp>
#include <algorithm>
Include dependency graph for Zoltan2_Sort.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Zoltan2::SortPairs< key_t, value_t >
 

Namespaces

 Zoltan2
 Created by mbenlioglu on Aug 31, 2020.
 
 Zoltan2::Details
 

Functions

template<class KeyType , class ValueType >
bool Zoltan2::Details::SortInc (const std::pair< KeyType, ValueType > &a, const std::pair< KeyType, ValueType > &b)
 
template<class KeyType , class ValueType >
bool Zoltan2::Details::SortDec (const std::pair< KeyType, ValueType > &a, const std::pair< KeyType, ValueType > &b)
 

Detailed Description

Sort vector of pairs (key, value) by value.

This class is needed so we also get the sorted keys (indices).

Definition in file Zoltan2_Sort.hpp.