Table of Contents
QccVectorIntSortComponents - quicksort of integer-vector components
#include "libQccPack.h"
int QccVectorIntSortComponents(const
QccVectorInt vector, QccVectorInt sorted_vector, int vector_dimension,
int sort_direction, int *auxiliary_list);
QccVectorIntSortComponents()
performs a quicksort of the components of vector with the resulting sorted
integer vector being returned in sorted_vector, which must be allocated
prior to calling QccVectorIntSortComponents(). The type of sort, ascending
or descending, is specified by giving sort_direction the values QCCVECTORINT_SORTASCENDING
or QCCVECTORINT_SORTDESCENDING, respectively.
QccVectorIntSortComponents()
can permute an auxiliary_list of integers in the same order as the sorted_vector.
auxiliary_list must contain vector_dimension integers. If no auxiliary_list
permutation is desired, auxiliary_list should be a NULL pointer.
QccVectorInt(3)
, QccPack(3)
QccVectorIntSortComponents() is
based on the QS2I1D routine of the SLATEC Common Mathematical library,
a freely redistributable package developed and maintained by a consortium
of Department of Energy and Department of Defense national laboratories.
Copyright (C) 1997-2021 James E. Fowler
Table of Contents