next up previous contents index
Next: Interface insertion_sort Up: Module linearalgebra_module Previous: Interface histogram   Contents   Index

Interface sort_array


\begin{boxedminipage}{\textwidth}
\begin{verbatim}call sort_array(array[,r_data])
call sort_array(array[,i_data])\end{verbatim}
\end{boxedminipage}

Sort an array of integers into ascending order (slow: scales as N$^2$). r_data is an accompanying array of reals on which the same reordering is performed

Sort an array of integers into ascending order (slow: scales as N$^2$). i_data is an accompanying array of integers on which the same reordering is performed

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

r_data -- real(dp), intent(inout), optional, dimension(:)

i_data -- integer, intent(inout), optional, dimension(:)

insertion_sort interface

gabor 2009-06-30