Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.6dev
      Class Index
      File List
   Version 1.0.6
   Version 1.0.5new_solver
   Version 1.0.5dev
   Version 1.0.5b
   Version 1.0.4dev
   Version 1.0.4
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads
sort.hpp File Reference

Insertion sort algorithm. More...

Go to the source code of this file.

Functions

void insertion_sort_iv (int *ind, double *val, int start, int end)
 Sort index-value pairs in ascending index order. More...
 
void insertion_sort_i (int *ind, int start, int end)
 Sort indices in ascending index order. More...
 

Detailed Description

Insertion sort algorithm.

Function Documentation

◆ insertion_sort_i()

void insertion_sort_i ( int *  ind,
int  start,
int  end 
)

Sort indices 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.

◆ insertion_sort_iv()

void insertion_sort_iv ( int *  ind,
double *  val,
int  start,
int  end 
)

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.


Reference manual for Ion Beam Simulator 1.0.6dev
Generated by Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.