STK++ 0.9.13
STK_HeapSort.h File Reference

In this file we define an implementation of the heapsort algorithm for IVector containers. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  STK
 The namespace STK is the main domain space of the Statistical ToolKit project.
 

Functions

template<class Vector >
void STK::heapSort (Vector &T)
 Sort the container T in ascending order.
 
template<class Vector >
void STK::heapSort (Vector const &T, Vector &Tsort)
 Sort the container T in ascending order and return the result in the container Tsort.
 
template<class Vector , class VectorInt >
void STK::heapSort (VectorInt &I, Vector const &T)
 Sort the container T in ascending order using index array.
 
template<class Vector , class VectorInt >
void STK::applySort1D (Vector &T, VectorInt const &I)
 Apply a sorting index array to the 1D container T.
 
template<class Array , class VectorInt >
void STK::applySort2D (Array &T, VectorInt const &I)
 Apply a sorting index array to the 2D container T row by row.
 

Detailed Description

In this file we define an implementation of the heapsort algorithm for IVector containers.

Definition in file STK_HeapSort.h.