Insertion sort algorithm. More...
Go to the source code of this file.
Functions | |
void | sort_iv (int *ind, double *val, int start, int end) |
Sort index-value pairs in ascending index order. More... | |
Insertion sort algorithm.
|
inline |
Sort index-value pairs in ascending index order.
Sort uses insertion sort algorithm, which is rather fast with small arrays, which should be the case with most sparse matrix applications.