Functions
sort.hpp File Reference

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.
 

Detailed Description

Insertion sort algorithm.

Function Documentation

void sort_iv ( int *  ind,
double *  val,
int  start,
int  end 
)
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.