next up previous contents index
Next: Interface check_size Up: Module linearalgebra_module Previous: Interface sort_array   Contents   Index

Interface insertion_sort


\begin{boxedminipage}{\textwidth}
\begin{verbatim}call insertion_sort(this[,idx])\end{verbatim}
\end{boxedminipage}

Do an in place insertion sort on this, in ascending order. If idx is present then on exit it will contain the list of indices into this permuted in the same way as the entries have been.

this -- intent(inout), dimension(:), integer or real(dp)

idx -- integer, intent(out), optional, dimension(size(this))

check_size interface

gabor 2009-06-30