CppAD: A C++ Algorithmic Differentiation Package  20130102
template<class VectorKey , class VectorSize >
void index_sort ( const VectorKey &  keys,
VectorSize &  ind 
)

Compute the indices that sort a vector of keys.

Template Parameters:
VectorKeySimple vector type that deterimene the sorting order by < operator on its elements.
VectorSizeSimple vector type with elements of size_t that is used to return index values.
Parameters:
keys[in] values that determine the sorting order.
ind[out] must have the same size as keys. The input value of its elements does not matter. The output value of its elements satisfy
( keys[ ind[i] ] < keys[ ind[i+1] ] ) == false 

Definition at line 142 of file index_sort.hpp.

Referenced by ADFun< Base >::SparseHessian(), ADFun< Base >::SparseJacobianForward(), and ADFun< Base >::SparseJacobianReverse().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines