ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
admb_deprecated Namespace Reference

Functions

dvector sort (const dvector &v, int NSTACK)
 Quicksort. More...
 
ivector sort (const ivector &v, int NSTACK)
 Quicksort. More...
 
ivector sort (const ivector &_v, const ivector &_index, int NSTACK)
 Quicksort. More...
 
dvector sort (const dvector &_v, const ivector &_index, int NSTACK)
 Quicksort. More...
 

Function Documentation

dvector admb_deprecated::sort ( const dvector v,
int  NSTACK 
)

Quicksort.

Parameters
vVector of doubles to be sorted
NSTACKLenth of intermediate storage vector. Default is NSTACK = 60.
Returns
dvector object containing the input vector sorted in ascending order.



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 8

Definition at line 20 of file dvsort2.cpp.

ivector admb_deprecated::sort ( const ivector v,
int  NSTACK 
)

Quicksort.

Parameters
vVector of integers to be sorted
NSTACKLenth of intermediate storage vector. Default is NSTACK = 60.
Returns
ivector object containing the input vector sorted in ascending order.



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 8

Definition at line 20 of file ivsort2.cpp.

ivector admb_deprecated::sort ( const ivector _v,
const ivector _index,
int  NSTACK 
)

Quicksort.

Parameters
_vVector of integers to be sorted
_indexivector on return containing the input order of the origian vector.
NSTACKLenth of intermediate storage vector. Default is NSTACK = 60.
Returns
ivector object containing the input vector sorted in ascending order.



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 8

Definition at line 110 of file ivsort2.cpp.

dvector admb_deprecated::sort ( const dvector _v,
const ivector _index,
int  NSTACK 
)

Quicksort.

Parameters
_vVector to be sorted
_indexivector on return containing the input order of the origian vector.
NSTACKLenth of intermediate storage vector. Default is NSTACK = 60.
Returns
dvector object containing the input vector sorted in ascending order.



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 8

Definition at line 114 of file dvsort2.cpp.