Table of Contents

NAME

QccVectorIntSortComponents - quicksort of integer-vector components

SYNOPSIS

#include "libQccPack.h"

int QccVectorIntSortComponents(const QccVectorInt vector, QccVectorInt sorted_vector, int vector_dimension, int sort_direction, int *auxiliary_list);

DESCRIPTION

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.

SEE ALSO

QccVectorInt(3) , QccPack(3)

NOTES

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.

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads