Table of Contents
QccVectorSortComponents - quicksort of vector components
#include "libQccPack.h"
int QccVectorSortComponents(const QccVector vector,
QccVector sorted_vector, int vector_dimension, int sort_direction, int
*auxiliary_list);
QccVectorSortComponents() performs a quicksort
of the components of vector with the resulting sorted vector being returned
in sorted_vector, which must be allocated prior to calling QccVectorSortComponents().
The type of sort, ascending or descending, is specified by giving sort_direction
the values QCCVECTOR_SORTASCENDING or QCCVECTOR_SORTDESCENDING, respectively.
QccVectorSortComponents() 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.
QccPack(3)
QccVectorSortComponents()
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