Table of Contents

NAME

QccVectorSortComponents - quicksort of vector components

SYNOPSIS

#include "libQccPack.h"

int QccVectorSortComponents(const QccVector vector, QccVector sorted_vector, int vector_dimension, int sort_direction, int *auxiliary_list);

DESCRIPTION

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.

SEE ALSO

QccPack(3)

NOTES

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.

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



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