CppAD: A C++ Algorithmic Differentiation Package
20130102
|
void index_sort | ( | const VectorKey & | keys, |
VectorSize & | ind | ||
) |
Compute the indices that sort a vector of keys.
VectorKey | Simple vector type that deterimene the sorting order by < operator on its elements. |
VectorSize | Simple vector type with elements of size_t that is used to return index values. |
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().